Is there a limit on the number of rows that I can update in a single query using an IN
clause? For example:
mysql_query("UPDATE `table` SET `row`=1 WHERE `id` IN(1,2,3,4,5,6,7,8....5000)");
Could I update all 5000 rows at once? Or does MySQL have a limit on the number of items in an IN
clause?
Please note: I want to know if there is a limit of updates in one single query where MySQL would say something like "maximum number of IN clause entries exceeded". That is, I am inquiring about a possible limit other than the "maximum packet size" setting in MySQL.