Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-28-2002, 05:52 AM   #1
LQ Newbie
Registered: Jan 2002
Location: Pretoria South Africa
Posts: 22

Rep: Reputation: 15
how do I Add multiple columns using mysql in postgres


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

Last edited by Bheki; 01-28-2002 at 06:04 AM.
Old 08-28-2003, 03:30 PM   #2
LQ Newbie
Registered: Aug 2003
Location: Pittsburgh, PA
Posts: 1

Rep: Reputation: 0
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Easiest way to Add Postgres to existing fedora core 3 installation? gfallon Linux - Newbie 2 03-20-2005 01:15 AM
postgres and mysql varun_33 Linux - Software 1 02-12-2005 08:54 AM
Postgres: can't add constraint vickr1z Linux - Newbie 1 11-25-2004 06:24 AM
MySQL - UNIQUE values across two columns - non-standard constraint issue benr77 Linux - General 2 11-06-2004 11:48 AM
MySQL or PostGres ?? Peds Linux - Software 5 02-18-2004 12:43 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration