fetch multiple records
Posted: 26.08.2009, 12:32
hello,
I use TZQuery to execute a SQL statement like "select * from table ... where ... limit=1000 offset=200" on a mySQL database.
After that I fetch one record of the resultset after the other using TZQuery.Next in a loop.
Is there any possibility to fetch a block of records, for example all 200 records of the resultset?
May be I have to use an other class instead of TZQuery?
Moreover, do you have any hint to a documentation or tutorial, where I can learn more about those details of the behaviour of the ZEOS classes?
Thanks in advance
Stefan.
I use TZQuery to execute a SQL statement like "select * from table ... where ... limit=1000 offset=200" on a mySQL database.
After that I fetch one record of the resultset after the other using TZQuery.Next in a loop.
Is there any possibility to fetch a block of records, for example all 200 records of the resultset?
May be I have to use an other class instead of TZQuery?
Moreover, do you have any hint to a documentation or tutorial, where I can learn more about those details of the behaviour of the ZEOS classes?
Thanks in advance
Stefan.