Re: SETOF

Поиск
Список
Период
Сортировка
От Christoph Haller
Тема Re: SETOF
Дата
Msg-id 3E65F78E.7455651B@rodos.fzk.de
обсуждение исходный текст
Ответ на SETOF  (Fernando <fernando@icreativa.com.mx>)
Ответы Re: SETOF  (Greg Stark <gsstark@mit.edu>)
Re: SETOF  (Greg Stark <gsstark@mit.edu>)
Список pgsql-sql
>
>
> Christoph Haller <ch@rodos.fzk.de> writes:
>
> > You cannot obtain several columns from SQL functions.
> > See the list archives (search for SETOF) for details.
> > You have to use e.g. a plpgsql function instead.
>
> How do you do it with a plpgsql function?
>
>
Sorry, Fernando, I was wrong. It works from version 7.3.
The reason why it's not working on your machine is probably
because of a prior version.

And Greg, refer to
http://techdocs.postgresql.org/guides/SetReturningFunctions

I think it will fit your needs.

Regards, Christoph




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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: SETOF
Следующее
От: Christoph Haller
Дата:
Сообщение: Re: LIMIT and SUBQUERIES