Re: How to write a function that manipulates a set of results

Поиск
Список
Период
Сортировка
От Andreas Kretschmer
Тема Re: How to write a function that manipulates a set of results
Дата
Msg-id 20070314180223.GA27187@KanotixBox
обсуждение исходный текст
Ответ на How to write a function that manipulates a set of results  (Ashley Moran <work@ashleymoran.me.uk>)
Ответы Re: How to write a function that manipulates a set of results  (Ashley Moran <work@ashleymoran.me.uk>)
Список pgsql-general
Ashley Moran <work@ashleymoran.me.uk> schrieb:
> The closest I've come from reading the docs is functions that return
> SETOF.  However I can't see any way to query the result set like a  table.

Right.

> Can anyone offer any hints/links?

select * from <insert_your_srf-function_here>.

For instance, if your SRF-function is called foo(), do:

select * from foo();


Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."    (unknow)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

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

Предыдущее
От: Randall Smith
Дата:
Сообщение: Re: quoted identifier behaviour
Следующее
От: Tom Lane
Дата:
Сообщение: Re: DST failing on 8.1.3