From: K Parker <kparker@eudoramail.com>
To: pgsql-sql@postgresql.org
Subject: Re: fetching rows
Date: Mon, 30 Oct 2000 10:58:52 -0800
Message-ID: <NOBNBJMODFMJBAAA@shared1-mail.whowhere.com> (raw)
I hate to be the bearer of bad news, but if you're using PHP and you wanted to fetch just 25 rows at a time for a single page, and then fetch more when the user clicks on a NEXT button or link, you're completely out of luck. Each http transaction is completely separate and so you can't maintain a cursor between pages. Perhaps LIMIT would help you here; but I've found it more useful to make sure there is a unique key for the order I'm displaying, and then say "WHERE key > highest_key_value_on_current_page"
Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: kparker@eudoramail.com
Subject: Re: fetching rows
In-Reply-To: <NOBNBJMODFMJBAAA@shared1-mail.whowhere.com>
References: <NOBNBJMODFMJBAAA@shared1-mail.whowhere.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox