Re: inserting multiple rows with one statement - Mailing list pgsql-sql

From codeWarrior
Subject Re: inserting multiple rows with one statement
Date
Msg-id b3b71c$2m4$1@news.hub.org
Whole thread Raw
List 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 by date:

Previous
From: Hubert depesz Lubaczewski
Date:
Subject: how to return ONE single record from a function in plpgsql?
Next
From: "Edipo E. F. Melo"
Date:
Subject: SORT with accents