Whats the limit on the number of elements in the IN clause of SELECT/UPDATE/DELETE
Whats the limit on the number of elements in the IN clause of SELECT/UPDATE/DELETE
От:
Gourish Singbal <gourish@gmail.com>
Дата:
Can some one give me the details for the below question?. Whats the limit on the number of elements in the IN clause of SELECT/UPDATE/DELETE?. -- Best, Gourish Singbal
Re: Whats the limit on the number of elements in the IN clause of SELECT/UPDATE/DELETE
От:
Bruno Wolff III <bruno@wolff.to>
Дата:
On Tue, Mar 22, 2005 at 21:52:35 +0530, Gourish Singbal wrote: > Can some one give me the details for the below question?. > > Whats the limit on the number of elements in the IN clause of > SELECT/UPDATE/DELETE?. I believe I have seen reports of people using thousands. However, since this case is converted to OR, it won't be particular fast when you have a number of values. In that case you are going to be better off loading them into a temp table, analyzing the table and then using IN with a subselect (and you want to be using 7.4 or later).