powered by
Helper command to rename a column via ALTER TABLE.
pg_renameColumn(column_name, new_column_name)
A string, PostgreSQL helper statement to rename a column using ALTER TABLE.
A string, the name of the column to change.
A string, the new name for the column.
pg_renameColumn( column_name = "newCol", new_column_name = "col1" )
Run the code above in your browser using DataLab