Re: Can we return a table from a function?

Поиск
Список
Период
Сортировка
От Gaetano Mendola
Тема Re: Can we return a table from a function?
Дата
Msg-id ch83sr$9p5$1@floppy.pyrenet.fr
обсуждение исходный текст
Ответы Re: Can we return a table from a function?  (Karim Nassar <Karim.Nassar@NAU.EDU>)
Список pgsql-general
Arundhati wrote:

> Hi
>
> I want the result of select query to be returned from a function. Or
> is there any way to return a table from a function?

What you are looking for is a table function:

http://www.postgresql.org/docs/7.3/interactive/xfunc-tablefunctions.html
http://www.postgresql.org/docs/7.4/interactive/plpgsql-control-structures.html#PLPGSQL-STATEMENTS-RETURNING


I'm not finding the equivalent for 7.4 about the first link.


Regards
Gaetano Mendola



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Debugging
Следующее
От: Ennio-Sr
Дата:
Сообщение: Re: Display of text fields