Java Oracle exception - “maximum number of expressions in a list is 1000”

后端 未结 7 715
再見小時候
再見小時候 2020-12-03 05:05

I am passing a list of Strings to my query(SQL query written) to fetch the required data. But I am getting this exception:

ora-01795 maximum number

7条回答
  •  隐瞒了意图╮
    2020-12-03 05:50

    this is a oracle limitation in the number of list pass in the query.

    1. you will have to chop your query or
    2. provide a subquery/join in the IN clause instead.

提交回复
热议问题