Re: retun cursor

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Madhavi Daroor <madhavi(at)zoniac(dot)com>
Cc: <pgsql-general(at)PostgreSQL(dot)org>
Subject: Re: retun cursor
Date: 2002-04-07 18:55:22
Message-ID: 20020407115311.N62634-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Thu, 6 Apr 2000, Madhavi Daroor wrote:

> Hi,
> I have tried the method you have suggested. And everytime I try to access
> the function in which the refcursor is kept open, the only output I get is
> "UNNAMED CURSOR" instead of the selected fields in the cursor.

Right. You get a cursor name that you can fetch from, if you're in a
transaction, after you select from the function, say it returns
"unnamed cursor 1", IIRC you can do,

fetch 10 from "unnamed cursor 1";
...

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2002-04-07 19:04:00 Re: inherited columns as foreign keys WAS "no subject"
Previous Message Ben-Nes Michael 2002-04-07 16:03:55 Inherit or Foreign Keys