Re: Functions that return both Output Parameters and recordsets

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Functions that return both Output Parameters and recordsets
Дата
Msg-id 20070611133021.GD4251@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Functions that return both Output Parameters and recordsets  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Список pgsql-general
Pavel Stehule escribió:
> Hello
>
> it's not possible. PostgreSQL doesn't support multiple recordset. You
> have to have two functions.

The other idea is to declare the function to return SETOF refcursor (or
have an OUT refcursor param), and return two refcursors open with the
different recordsets.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: "Pit M."
Дата:
Сообщение: Re: transaction problem using cursors
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: transaction problem using cursors