6

I would like to know if there is a limit on the size of a collection when using the IN clause.

select a from A where a.b IN (:c)

and c is a list(for example).

Francesco
  • 2,350
  • 11
  • 36
  • 59

1 Answers1

3

It depends on the specific DBMS, ie. sqlite and postgres have widely different limits (not surprisingly).

EDIT:

For Oracle: How to put more than 1000 values into an Oracle IN clause

For mysql: http://explainextended.com/2009/08/18/passing-parameters-in-mysql-in-list-vs-temporary-table/

Community
  • 1
  • 1
Savino Sguera
  • 3,522
  • 21
  • 20