psql change column name code example
Example 1: how to update column name in psql
ALTER TABLE table_name
RENAME COLUMN old_name TO new_name;
Example 2: how to update column name in psql
ALTER TABLE order_details
DROP COLUMN notes;
ALTER TABLE table_name
RENAME COLUMN old_name TO new_name;
ALTER TABLE order_details
DROP COLUMN notes;