How to add multiple columns to a table in Postgres?

Hick picture Hick · Mar 10, 2011 · Viewed 58.4k times · Source

How do I add multiple columns in one query statement in PostgreSQL using pgadmin3?

Answer

Erkan Haspulat picture Erkan Haspulat · Mar 10, 2011

Try this :

ALTER TABLE table ADD COLUMN col1 int, ADD COLUMN col2 int;