Search Postgresql Archives

Re: display cursor contents

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/13/07, Steve P Shiflett <Steve.P.Shiflett@xxxxxxxxx> wrote:

I wish to display the output of a cursor but haven't discovered the trick.
Here's what I'm doing:



According to the documentation, you can fetch from a returned
refcursor like this:

FETCH ALL IN "<unnamed cursor 1>";

You can name the refcusor inside your function like this:

my_cursor refcursor default 'something';

which makes it easier to get from sql script from a known name.

merlin


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux