|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (10 bit)
|
multiple insert statements(SQL)....?
Is there a way to insert multiple values in one INSERT statement?
For example: Code:
INSERT INTO 'phonebook' ('id', 'fname', 'lname')
VALUES ('1', 'dan', 'smith')
VALUES ('2', 'joe', 'smith');
.....
TIA ^dan |
|
|
|
|
|
#2 |
|
Professional gadfly
|
No, you will need a seperate insert statement for each record you want to insert in that way. Insert statements can only add more than one record using SELECT statements, like INSERT INTO phonebook (ID, FNAME, LNAME) SELECT ID, FNAME, LNAME FROM another_table
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|