newbie sql question...

Поиск
Список
Период
Сортировка
От Jason Ziegler
Тема newbie sql question...
Дата
Msg-id 310007B0-8F38-11D7-86C1-0003930F1D7A@mac.com
обсуждение исходный текст
Ответы Re: newbie sql question...  (Jonathan Gardner <jgardner@jonathangardner.net>)
Список 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


В списке pgsql-general по дате отправления:

Предыдущее
От: Mike Withers
Дата:
Сообщение: Linked Servers
Следующее
От: Rishabh Chandra
Дата:
Сообщение: sql datatypes storage