Fetching from cursor....

From: "Nilesh A(dot) Phadke" <nphadke(at)csgrad(dot)cs(dot)vt(dot)edu>
To: pgsql-general(at)hub(dot)org
Subject: Fetching from cursor....
Date: 2000-04-06 16:59:45
Message-ID: Pine.OSF.4.21.0004061255220.22456-100000@csgrad.cs.vt.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello ,
I want to fecth random rows from a table ... I have defined a cursor
like

EXEC SQL DECLARE C CURSOR FOR SELECT * FROM tablename ;

Now I want to fectch nth row from the table without actually having to
fetch all n-1 rows before i get to the nth row of the table....

Any help is most welcome....
Thanks,
Nilesh.

Browse pgsql-general by date

  From Date Subject
Next Message Kevin Heflin 2000-04-06 19:48:24 large text fields
Previous Message Moray McConnachie 2000-04-06 15:56:31 Re: Accelerating subqueries