Re: Insert more than one t-uple in a single sql

Поиск
Список
Период
Сортировка
От Klint Gore
Тема Re: Insert more than one t-uple in a single sql
Дата
Msg-id 43EBCF8E1A.1A7AKG@129.180.47.120
обсуждение исходный текст
Ответ на Insert more than one t-uple in a single sql  ("Gonzalo Villegas" <chalo1970@hotmail.com>)
Список pgsql-general
On Thu, 9 Feb 2006 17:57:03 -0500, "Gonzalo Villegas" <chalo1970@hotmail.com> wrote:
>
>
> Hi all,
>
> I'm trying to insert more than one t-uple in a single sql query. Just like
>
> copy table (field1,field2,...) from ....
>
> It must be something like
>
> insert into table (field1,field2,...) values (v1,v2,...),(b1,b2,...),
> (c1,c2,...)

insert into table (field1,field2)
select v1,v2
union all
select b1,b2
union all
select c1,c2

klint.

+---------------------------------------+-----------------+
: Klint Gore                            : "Non rhyming    :
: EMail   : kg@kgb.une.edu.au           :  slang - the    :
: Snail   : A.B.R.I.                    :  possibilities  :
: Mail      University of New England   :  are useless"   :
:           Armidale NSW 2351 Australia :     L.J.J.      :
: Fax     : +61 2 6772 5376             :                 :
+---------------------------------------+-----------------+

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

Предыдущее
От: Chris
Дата:
Сообщение: Re: Insert more than one t-uple in a single sql
Следующее
От: Rick Gigger
Дата:
Сообщение: Re: Insert more than one t-uple in a single sql