LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how do I Add multiple columns mysql in postgres (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-add-multiple-columns-mysql-in-postgres-12871/)

Bheki 01-28-2002 04:52 AM

how do I Add multiple columns using mysql in postgres
 
Hi

Would u please advice me on how to add multiple columns using mysql in postgres. I have tried the Sql statement : Alter table add (x1 datatype1,x2 datatype2,x3 datatype3)

It is not working. But works if adding one column.

please help

Broomaster1 08-28-2003 02:30 PM

This is good for all sql distro's use add column for every column you want to add. ie.

alter table a add column d int, add column e varchar(30);

this will work.


All times are GMT -5. The time now is 10:27 AM.