Re: Returning multiple rows from plpgsql function

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Returning multiple rows from plpgsql function
Дата
Msg-id 20030217121738.F9891-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Returning multiple rows from plpgsql function  (Mintoo Lall <tlqmail@yahoo.com>)
Список pgsql-sql
On Mon, 17 Feb 2003, Mintoo Lall wrote:

> How can I return multiple rows from a plpqsql function. I wanted to
> write a function which gives me the result of the final select query
> from a bunch of nested select queries. What return type should use?
> The return type %ROWTYPE only returns a single row. In SQL function I
> can do this by stating that the function returns a setof record but it
> doesnt work in plpgsql function.

You might want to look at the Set Returning Functions document at
techdocs.postgresql.org.



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

Предыдущее
От: Mintoo Lall
Дата:
Сообщение: Returning multiple rows from plpgsql function
Следующее
От: "Yudie"
Дата:
Сообщение: Format Function