-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Whats the limit on number of elements in IN clause ?
PostPosted: Fri Mar 28, 2008 7:26 pm 
Newbie

Joined: Tue Oct 17, 2006 10:57 am
Posts: 14
We use Hibernate 3 and when the elements in IN clause goes beyond a certain number it bombs? Can someone tell me the limit and how can this be fixed? Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 03, 2008 2:12 pm 
Newbie

Joined: Fri Feb 17, 2006 5:45 pm
Posts: 6
it is 1000 i believe for oracle. and you can fix it by having multiple IN separated by OR - each IN having max 1000 values - e.g:
select * from x where id in ("1", "2", ...."1000") OR id in ("1001", ....)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.