LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

Rep: Reputation: 15
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

Last edited by Bheki; 01-28-2002 at 05:04 AM.
 
Old 08-28-2003, 02:30 PM   #2
Broomaster1
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.
 
  


Reply



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 12:15 AM
postgres and mysql varun_33 Linux - Software 1 02-12-2005 07:54 AM
Postgres: can't add constraint vickr1z Linux - Newbie 1 11-25-2004 05:24 AM
MySQL - UNIQUE values across two columns - non-standard constraint issue benr77 Linux - General 2 11-06-2004 10:48 AM
MySQL or PostGres ?? Peds Linux - Software 5 02-17-2004 11:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:20 AM.

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