db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter riegersperger <r...@subnet.at>
Subject Re: How to get specified number of entries?
Date Sun, 16 Mar 2003 13:12:22 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 16 March 2003 14:05, Michael Schmitt wrote:
> 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)'.

take a look at LargeSelect:
http://db.apache.org/torque/apidocs/org/apache/torque/util/LargeSelect.html

regards,

rick

- -- 
|-
| peter riegersperger  <rick@subnet.at>
|-
| subnet
| platform for media art and experimental technologies
|-
| http://www.subnet.at/
|-
| muehlbacherhofweg 5 // 5020 salzburg // austria
|-
| fon/fax +43/662/842 897
|- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+dHg2IMP39JYOy9IRAogJAKD8TiNYJO8pVg5/OfKIj/ILElR7vwCgurok
5M6GK0VkCj1dMQwGD7VEJ4Y=
=Rfdk
-----END PGP SIGNATURE-----


Mime
View raw message