Re: inserting multiple rows with one statement

Поиск
Список
Период
Сортировка
От codeWarrior
Тема Re: inserting multiple rows with one statement
Дата
Msg-id b3b71c$2m4$1@news.hub.org
обсуждение исходный текст
Список pgsql-sql
INSERT () SELECT ();



"Cali Hotstuff" <calihotstuff@hotmail.com> wrote in message
news:e30679f9.0302211417.67629243@posting.google.com...
> I know that this is easy to do in a programming language or with a
> script, but is there any way -- purely in SQL -- to insert multiple
> rows based on the results of a subquery.
>
> ie, if SubQuery yields rows {x,y,z}, I want to somehow insert these
> three different rows into MyTable on the same query.
>
> Thanks in advance,
> cali




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

Предыдущее
От: Hubert depesz Lubaczewski
Дата:
Сообщение: how to return ONE single record from a function in plpgsql?
Следующее
От: "Edipo E. F. Melo"
Дата:
Сообщение: SORT with accents