Search Postgresql Archives

Re: multiple row insertion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: 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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux