Check out example codes for "how to update column name in psql". It will help you in understanding the concepts better.

Code Example 1

ALTER TABLE order_details
  DROP COLUMN notes;

Code Example 2

ALTER TABLE table_name
  RENAME COLUMN old_name TO new_name;

Code Example 3

ALTER TABLE order_details
  RENAME TO order_information;

Learn ReactJs, React Native from