Re: Functions that return both Output Parameters and recordsets

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Functions that return both Output Parameters and recordsets
Дата
Msg-id 20070611133425.GA32957@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: Functions that return both Output Parameters and recordsets  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Список pgsql-general
On Mon, Jun 11, 2007 at 03:20:15PM +0200, Pavel Stehule wrote:
> it's not possible. PostgreSQL doesn't support multiple recordset. You
> have to have two functions.

If you don't mind handling cursors then you could return multiple
cursors from one function.  See the PL/pgSQL documentation for an
example (the example is at the bottom of the page).

http://www.postgresql.org/docs/8.2/interactive/plpgsql-cursors.html

--
Michael Fuhr

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

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