turbine-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gaasch, Derek" <dgaa...@montana.edu>
Subject RE: Criteria Question -- mySQL "Limit" or howto select first X ro ws r eturned
Date Tue, 04 Feb 2003 00:40:45 GMT
Ok. That was a moronic question. Sorry. I must be tired.

Criteria.setLimit();

-d

-----Original Message-----
From: Gaasch, Derek [mailto:dgaasch@montana.edu] 
Sent: Monday, February 03, 2003 5:33 PM
To: 'Turbine Users List'
Subject: Criteria Question -- mySQL "Limit" or howto select first X rows r
eturned


I'm looking for a way to select the first x rows in a table instead of
returning all the rows and then just iterating through the first x values
returned.... with mySQL there's a limit clause, but I cant find a criteria
method which uses it... anyone know of one? If not, I know I can just issue
a direct query, but thought I'd like to stick with Criteria objects (unless
theres a good reason not to).

Thanks
-d

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Mime
View raw message