Re: multiple row insertion - Mailing list pgsql-general

From test tester
Subject Re: multiple row insertion
Date
Msg-id 4640d9b40710040647q6693cb41qefcd6da7f3312d49@mail.gmail.com
Whole thread Raw
In response to multiple row insertion  ("test tester" <test896@gmail.com>)
Responses Re: multiple row insertion
Re: multiple row insertion
Re: multiple row insertion
List pgsql-general


On 10/4/07, test tester <test896@gmail.com> wrote:
i have version 8.1 and i want to know how to insert multiple rows in this version.


On 10/4/07, Ashish Karalkar < ashish.karalkar@info-spectrum.com> wrote:
INSERT INTO qsweb.core_board(board_name, entry_user_id, entry_date)
    VALUES ('a',1,now()),('b',1,now());
----- Original Message -----
Sent: Thursday, October 04, 2007 4:49 PM
Subject: [GENERAL] multiple row insertion

In MySQL, I can insert multiple rows like this:

insert into cars values(5, "toyota"),(5,"ford"), etc.

How can I do something similiar in PostgreSQL?
 
 
insert into  cars (id,name) values (1,'toyota'),(2,'ford');
 
With Regards
Ashish


pgsql-general by date:

Previous
From: Miroslav Šulc
Date:
Subject: Re: ERROR: variable not found in subplan target lists
Next
From: Alvaro Herrera
Date:
Subject: Re: ERROR: variable not found in subplan target lists