Re: [despammed] multiple inserts - Mailing list pgsql-novice

From Andreas Kretschmer
Subject Re: [despammed] multiple inserts
Date
Msg-id 20050617140218.GA5880@webserv.wug-glas.de
Whole thread Raw
In response to multiple inserts  ("Oren Mazor" <oren.mazor@gmail.com>)
List pgsql-novice
am  17.06.2005, um  9:32:21 -0400 mailte Oren Mazor folgendes:
> hi all,
>
> I'm wondering if it is at all possible to do a mass insert into a table
> using only a single query?
>
> Something along the lines of:
>
> insert into mytable values (val1), (val2), (val3)

What do you mean, multiple rows, ore one row?
You can insert one row with any columns with "insert into table (col1, col2,
col3) values (val1, val2, val3);", and you can do a mass-insert with
"copy from ...".


Regards, Andreas
--
Andreas Kretschmer    (Kontakt: siehe Header)
Heynitz:  035242/47212,      D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
 ===    Schollglas Unternehmensgruppe    ===

pgsql-novice by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: multiple inserts
Next
From: Tom Lane
Date:
Subject: Re: multiple inserts