Re: retun cursor - Mailing list pgsql-general

From Stephan Szabo
Subject Re: retun cursor
Date
Msg-id 20020407115311.N62634-100000@megazone23.bigpanda.com
Whole thread Raw
In response to retun cursor  ("Madhavi Daroor" <madhavi@zoniac.com>)
Responses Re: retun cursor  (Jan Wieck <janwieck@yahoo.com>)
List 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";
...


pgsql-general by date:

Previous
From: "Ben-Nes Michael"
Date:
Subject: Inherit or Foreign Keys
Next
From: Stephan Szabo
Date:
Subject: Re: inherited columns as foreign keys WAS "no subject"