Re: Returning a CURSOR from plpgsql functions

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Returning a CURSOR from plpgsql functions
Дата
Msg-id 20020131115414.B16538-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Returning a CURSOR from plpgsql functions  (Darren Ferguson <darren@crystalballinc.com>)
Список pgsql-general
On Thu, 31 Jan 2002, Darren Ferguson wrote:

> I believe that you can return CURSORS from plpgsql functions however i
> have not been able to figure out exactly how.
>
> Anybody have any ideas ???

create table aa(a int, b int, c int);
create function f() returns refcursor as '
declare
 r refcursor;
begin
 open r for select * from aa;
 return r;
end;' language 'plpgsql';




В списке pgsql-general по дате отправления:

Предыдущее
От: Doug McNaught
Дата:
Сообщение: Re: going crazy with serial type
Следующее
От: "Gregory Wood"
Дата:
Сообщение: Re: going crazy with serial type