pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nikolay Mijaylov <nmmm@nmmm.nu>
To: pgsql-sql@postgresql.org
Subject: fetching rows
Date: Mon, 30 Oct 2000 18:27:39 +0200
Message-ID: <NDBBJGGFCLFEEGHHKCABCEGCDIAA.nmmm@nmmm.nu> (raw)

Let say we have a select that returns 100 rows.

I can fetch first 25 with simple sql:

BEGIN WORK;
DECLARE liahona CURSOR FOR SELECT * FROM films;
FETCH [FORWARD] 25 IN liahona;
CLOSE liahona;
COMMIT WORK;

but how I can fetch rows from 26 to 50? I mean withou fetching first 25. Or
can I skip first 25?

When i ask this you need to know that Im using PHP in web environment and
try do this to get more  performens from the script (now the script fetch
all rows, then jump to needed row)





view thread (6+ messages)  latest in thread

Message-ID: <NDBBJGGFCLFEEGHHKCABCEGCDIAA.nmmm@nmmm.nu>
Permalink:  ../NDBBJGGFCLFEEGHHKCABCEGCDIAA.nmmm@nmmm.nu/
Also on:    postgresql.org/message-id/NDBBJGGFCLFEEGHHKCABCEGCDIAA.nmmm@nmmm.nu

 · 

reply

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: nmmm@nmmm.nu
  Subject: Re: fetching rows
  In-Reply-To: <NDBBJGGFCLFEEGHHKCABCEGCDIAA.nmmm@nmmm.nu>
  References: <NDBBJGGFCLFEEGHHKCABCEGCDIAA.nmmm@nmmm.nu>

* 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