Home Databases pgSql How to delete a column in a database table using postgres via the command line?
 
 
 

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

PDF Print E-mail

Questions: How to delete a column in a database table using postgres sql via the command line?

 

Answer:

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.

 

+/-
+/- Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
Security Please input the anti-spam code that you can read in the image.
 

Go Daddy $7.49 .com Sale!