copy column with nulls to another column postgres code example Example: copy value from one column to another postgres UPDATE table SET columnB = columnA;