pgsql rename column code example
Example 1: psql filed name alter
ALTER TABLE table_name
RENAME column_name TO new_column_name;
Example 2: rename column postgres
ALTER TABLE customers
RENAME COLUMN name TO customer_name;
ALTER TABLE customers
RENAME COLUMN phone TO contact_phone;
Example 3: rename column mysql
ALTER TABLE tableName CHANGE `oldcolname` `newcolname` datatype(length);
(you can remove the backticks if it doesn't work)