True...I want multiple inserts...the data is coming from files...not another database
I've a number of files that I'm collecting data from.
I wanted to know if I could dump all the data from all the various files that I collect (in an array) into a MySQL database with 1 INSERT call versus having to do a INSERT for every file I have:
One-in-one (what I'm trying to avoid):
insert into table set (name=$array[1][name], size=$array[1][size]);
insert into table set (name=$array[2][name], size=$array[2][size]);
insert into table set (name=$array[3][name], size=$array[3][size]);
Many-in-one (what I would rather use):
insert into table set (name=$array[1][name], size=$array[1][size]), (name=$array[2][name], size=$array[2][size]), (name=$array[3][name], size=$array[3][size]), etc...
Seems like I should be able to do this although I still haven't tried it.