Im using postgres and a zquery select * from items and using fetchrow = 10 but it still loads all query rows on the open. I only want 10 rows on start up and the rest as it is needed ...
How i fetch only 10 by 10 rows ?
Any effective answer ?
Is it working ,
fetchrow
- Sergiomaster
- Fresh Boarder
- Posts: 24
- Joined: 13.06.2011, 12:37
Re: fetchrow
Hello
FetchRow works ,i mean : i test it with Firebird and have the effect i hope. i wrote this "expérience" in a tutorial still in progress you can find herehttp://serge-girard.developpez.com/tuto ... p/ZeosDBO/ , hopping the tutorial is accessible )
if you want to only have the 10 first rows then use limit
i.e.
FetchRow works ,i mean : i test it with Firebird and have the effect i hope. i wrote this "expérience" in a tutorial still in progress you can find herehttp://serge-girard.developpez.com/tuto ... p/ZeosDBO/ , hopping the tutorial is accessible )
if you want to only have the 10 first rows then use limit
i.e.
Code: Select all
select *
from scores
order by score desc
limit 10
Main uses Delphi3/7/2010/Rio 10.3/Sidney 10.4 + Interbase/Firebird
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
Re: fetchrow
It works for all plains. But this value only indicates count of row which are fetched from query.
It's no Limit/Offset sql change if you expect this.
It's no Limit/Offset sql change if you expect this.
Best regards, Michael
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/