Multiple mysql INSERT statements in one query php [duplicate]

For what it’s worth, and depending on if you’re inserting the same data into
the same tables, it’s much better to insert multiple values with the one insert
e.g.

INSERT INTO a VALUES (1,23),(2,34),(4,33);
INSERT INTO a VALUES (8,26),(6,29);

Leave a Comment