Updating integer column with null values in postgres Updating integer column with null values in postgres postgresql postgresql

Updating integer column with null values in postgres


This should be,

UPDATE table1 SET column_a = NULLWHERE column_b = 'XXX';