How can I do multiple inserts like:
$query = "INSERT INTO `table` (`fied1`, `field2`, `field3`) VALUES ('one', 'two', 'three'),('four', 'five', 'six');
INSERT INTO `table` (`fied1`, `field2`, `field3`) VALUES ('seven', 'eight', 'nine'),('ten', 'eleven', 'twelve');"
$db->setQuery($query);
$db->query();
I can't split this query because I'm getting it from large text file.
mysqli
'smulti_query()
is not to be trusted as prepared statement cannot be implemented with it. For anyone playing with csv's,LOAD DATA INFILE
will get Google to show you a good technique.