How to delete a column in a database table using PostgreSQL via the command line

No Comments

Use the following statement

ALTER TABLE my_table DROP COLUMN my_column;

Replace my_table with the your table name and my_column with the column that you need to drop/remove.

Image Credits: Photo by Isis França on Unsplash.

Last Updated On April 07, 2018

Related Articles

No results found

Leave a Reply

avatar
  Subscribe  
Notify of
Menu
Copy link