SQL IN Clause 1000 item limit

前端 未结 4 1646
梦毁少年i
梦毁少年i 2020-11-22 11:19

It is possible to put more than 1000 items in the SQL IN clause? We have been getting issues with our Oracle database not being able to handle it.

IF yes, how do we

4条回答
  •  轮回少年
    2020-11-22 12:15

    We can have more than one "IN" statement for the same variable.

    For ex:

    select val
     from table
    where val in (1,2,3,...)
    or
    val in (7,8,9,....)
    

提交回复
热议问题