postgres alter table remove column code example
Example 1: psql drop column
ALTER TABLE table_name
DROP COLUMN column_name;
Example 2: remove contraints command psql
ALTER TABLE table_name DROP CONSTRAINT constraint_name;
ALTER TABLE table_name
DROP COLUMN column_name;
ALTER TABLE table_name DROP CONSTRAINT constraint_name;