what is the upper limit for the predicate WHERE IN () db2?

user3492304 picture user3492304 · Sep 1, 2014 · Viewed 11.7k times · Source

what is the upper limit for predicate WHERE IN in DB2.

For example:

select salary from employee where empid in (1,2,3,4...N)

Answer

nclark picture nclark · Jul 8, 2016

The AS/400 limit is around 1000, based on errors we get when we exceed that. We're splitting up into multiple smaller queries to patch our legacy JEE app.