List:General Discussion« Previous MessageNext Message »
From:Batara Kesuma Date:January 28 2004 11:00am
Subject:Very big IN ( $value )
View as plain text  
Hi,

I do my query from Perl DBI, it has a very big IN ( $value ).
The query looks like:
SELECT id FROM user 
WHERE sex='m' 
AND hobby_id='3'
AND id IN ( $value );

$value looks like:
102, 233, 445, 543 ... 3443, 332 very long list.

It might be about 10,000 id in $value. What is the maximum value I can
pass in a query? Is this the right way to do it? (I mean, using a very
big value inside IN)

Thank you,
--bk

 
Thread
Very big IN ( $value )Batara Kesuma28 Jan
  • Re: Very big IN ( $value )Jigal van Hemert28 Jan
  • Re: Very big IN ( $value )Don Read28 Jan
RE: Very big IN ( $value )Jim Knepley28 Jan