
December 28th, 2001, 11:37 AM
|
|
Contributing User
|
|
Join Date: Oct 1999
Location: Annapolis, Maryland US
Posts: 113
Time spent in forums: < 1 sec
Reputation Power: 14
|
|
|
Multiple inserts in one statement
Given a simple table (called simple_table)
id int
name varchar
state char
in MySQL, you can use INSERT INTO simple_table(id, name) VALUES (1, 'Fred'), (2, 'John'), (3, 'Mary')......
...etc to add multiple entries with one statement.
Is there a comparable way to do this in Postgres? The above syntax doesn't seem to work (Postgres 7.1.2)
Any takers?
Kyuzo
|