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

hibernatejavaora-01795oracle

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 of expressions in a list is 1000

I checked that I have more than 1000 entries in the list passed to the query IN parameter.

Best Answer

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.
Related Topic