I want to update data using query but when column is not null, it will not update and still use old data. I tried with this query but failed.
UPDATE tableA SET
column2 = case column2 WHEN NULL THEN to_timestamp('2022-08-09 13:57:40', 'YYYY-MM-DD hh24:mi:ss') end,
column3 = CASE column3 WHEN NULL THEN to_timestamp('2022-08-09 13:57:40', 'YYYY-MM-DD hh24:mi:ss') end,
colum3 = '1'
WHERE column1='abc';