fetchrow

The stable tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.
Post Reply
sfxcc
Senior Boarder
Senior Boarder
Posts: 95
Joined: 13.05.2010, 18:48

fetchrow

Post by sfxcc »

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 ,
where's the code ..
User avatar
Sergiomaster
Fresh Boarder
Fresh Boarder
Posts: 24
Joined: 13.06.2011, 12:37

Re: fetchrow

Post by Sergiomaster »

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/ , :roll: 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
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Re: fetchrow

Post by EgonHugeist »

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.
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/

Image
Post Reply