Page 1 of 1

fetchrow

Posted: 19.11.2014, 21:49
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 ,

Re: fetchrow

Posted: 24.11.2014, 15:05
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

Re: fetchrow

Posted: 29.11.2014, 18:22
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.