db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Schmitt" <mi.schm...@gmx.de>
Subject How to get specified number of entries?
Date Sun, 16 Mar 2003 13:05:51 GMT
Hi,
I want to do something like 'Give me the first twenty entries from mytable
and tell me if there are any more entries, or better: additionally tell me
how
many entries there are in the table. If possible, all of this with only one
criteria (one select, one db-connection, well, in the end as fast as
possible)'.

Just now, I don't even know how to get the number of entries without
reading all the entries. Something like:
ItemPeer.doSelect(new Criteria()).size();

Any ideas?
bye,
michael


Mime
View raw message