postgres and rename column in query code example
Example 1: rename table postgres
ALTER TABLE table_name
RENAME TO new_table_name;
Example 2: psql drop field
ALTER TABLE table_name DROP COLUMN column_name;
ALTER TABLE table_name
RENAME TO new_table_name;
ALTER TABLE table_name DROP COLUMN column_name;