Re: is it possible to recover more than one recordset or cursor from a function?

Поиск
Список
Период
Сортировка
Искать
От
Pavel Stehule
Тема
Re: is it possible to recover more than one recordset or cursor from a function?
Дата
Msg-id
162867790706180031o687cafebw781f1f74e27c9d05@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Re: is it possible to recover more than one recordset or cursor from a function? "Albe Laurenz" <all@adv.magwien.gv.at>
Re: is it possible to recover more than one recordset or cursor from a function? "Pavel Stehule" <pavel.stehule@gmail.com>
2007/6/18, Albe Laurenz :
> guillermo arias wrote:
> >
> > is it possible to recover more than one recordset or cursor
> > from a function?
> > I use to do it in ms sql server, but it is a mistery for me
> > in postgre.
>
> CREATE FUNCTION returns2cursors(OUT c1 refcursor, OUT c2 refcursor)
> LANGUAGE plpgsql AS ....
>

or CREATE FUNCTION ... RETURNS SETOF CURSOR
BEGIN
...
END

you can find notice about it in documentation
http://www.postgresql.org/docs/8.2/interactive/plpgsql-cursors.html

regards
Pavel Stehule
В списке pgsql-general по дате отправления
От: Albe Laurenz
Дата:
От: g.hintermayer@inode.at
Дата:
Сообщение: Re: Apparent Wraparound?
FAQ