postgres change column name in table code example
Example 1: how to update column name in psql
ALTER TABLE order_details
RENAME TO order_information;
Example 2: how to update column name in psql
ALTER TABLE order_details
DROP COLUMN notes;
ALTER TABLE order_details
RENAME TO order_information;
ALTER TABLE order_details
DROP COLUMN notes;