MySQL IN clause: max number of arguments

前端 未结 4 2048
难免孤独
难免孤独 2020-12-16 15:00

Say you have the following query:

SELECT * FROM table1 WHERE table1.id IN (1, 2, 3, 4, 5, ..., 999999)

What is a reasonable maximum for the

4条回答
  •  一个人的身影
    2020-12-16 15:50

    From my experience the maximum values is 1000 values in clause IN ('1',....,'1000'), I have 1300 value in my excel sheet,I put them all into IN ,MySQL return only 1000 .

提交回复
热议问题