postgres what if i rename a column with al the data ? code example
Example 1: rename column postgres
ALTER TABLE customers
RENAME COLUMN name TO customer_name;
ALTER TABLE customers
RENAME COLUMN phone TO contact_phone;
Example 2: rename column postgres
ALTER TABLE distributors RENAME COLUMN address TO city;