How to Rename a Column in PostgreSQL
This example renames the column my_column to my_renamed_column:
ALTER TABLE my_table
RENAME COLUMN my_column TO my_renamed_column;This example renames the column my_column to my_renamed_column:
ALTER TABLE my_table
RENAME COLUMN my_column TO my_renamed_column;DB Pilot is a Database GUI client and SQL editor for PostgreSQL, MySQL, SQLite, DuckDB & more.