newbie sql question...

From: Jason Ziegler <jasonzig(at)mac(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: newbie sql question...
Date: 2003-05-26 05:09:13
Message-ID: 310007B0-8F38-11D7-86C1-0003930F1D7A@mac.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello folks, I'm new to this list, and have been putting up with mysql
for too long, so please forgive me for asking such a newbie question as
this:

I have a query that works in mysql:
"INSERT INTO table1 ( id, column2, column3 ) VALUES ( '1', 'text
stuff', 'text stuff' ), ( '2', 'more text', 'even more text')"

When I try this in postgresql, it won't work:
"INSERT INTO table1 ( 'id', 'column2', 'column3' ) VALUES ( '1', 'text
stuff', 'text stuff' ), ( '2', 'more text', 'even more text')"

I think I'm getting the syntax wrong for stringing together multiple
value sets or something.
Can anyone point me in the correct direction of how to do this
properly, please?

Thanks,

jz

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-05-26 05:47:07 Re: 7.3.2 on Solaris 8
Previous Message David Jericho 2003-05-26 01:39:50 7.3.2 on Solaris 8