Check out example codes for "rename table postgres". It will help you in understanding the concepts better.

Code Example 1

ALTER TABLE table_name
RENAME TO new_table_name;

Code Example 2

ALTER TABLE table_name 
RENAME column_name TO new_column_name;

Learn ReactJs, React Native from akashmittal.com