Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

rename column postgres

ALTER TABLE customers 
RENAME COLUMN name TO customer_name;

ALTER TABLE customers
RENAME COLUMN phone TO contact_phone;
Source by www.postgresqltutorial.com #
 
PREVIOUS NEXT
Tagged: #rename #column #postgres
ADD COMMENT
Topic
Name
3+1 =