We all know that it’s better to use multiple inserts in ONE query than to run MULTIPLE queries. But, I don’t know upto how many these multiple extended values does Mysql support? I searched over net but didn’t find the correct answer. I’m just curious to know this.
Example,
INSERT INTO tbl_name VALUES(1, 'John Doe'), (2, 'Peter England'), ....
I remember when I was using some MVC framework where it was trying to fire hundreds/thousands of inserts in one query, I used to get some sort of error message like Mysql server has gone away.
The limit for multiple inserts, like the one you are talking about would be bound by the packet limit.
See: http://dev.mysql.com/doc/refman/5.1/en/packet-too-large.html
This will affect all query types, and not just insert.
To add a little more context, the error you spoke of MySQL server has gone away would be a result of exceeding the packet limit. A quote from the page: