Re: multiple row insertion - Mailing list pgsql-general

From Ashish Karalkar
Subject Re: multiple row insertion
Date
Msg-id 00e601c8067b$ab189c40$170211ac@LIONKING.COM
Whole thread Raw
In response to multiple row insertion  ("test tester" <test896@gmail.com>)
List pgsql-general
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: Stefan Schwarzer
Date:
Subject: Re: Find min year and min value
Next
From: Florian Pflug
Date:
Subject: Re: Generating TRUNCATE orders