-->
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: set the result size?
PostPosted: Mon Jul 05, 2004 3:22 am 
Newbie

Joined: Mon Mar 01, 2004 7:41 am
Posts: 6
I would like to know if it is possible to set the size of the result set returned by a select.

If I do the following:

select * from Cat cat;

is it possible to say something like:

select first 10 from Cat cat;

Can this be done?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 05, 2004 5:36 am 
Newbie

Joined: Thu Jan 08, 2004 12:05 pm
Posts: 14
have a look at Query.setMaxResults(int)


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.