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).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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/