Understanding setof

Поиск
Список
Период
Сортировка
От Robert James
Тема Understanding setof
Дата
Msg-id CAGYyBghUoqXwf8WdA=ToZtsNAaw-N_DeFwPuGFb7VnuptbZokw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Understanding setof  (Raymond O'Donnell <rod@iol.ie>)
Re: Understanding setof  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-general
I'm having trouble with setof returning functions

Let's say I have function x() returning setof integers.  I want to do
SELECT x(), but only keep the values which meet a criteria.  Something
like: SELECT x() as xval WHERE xval = 10.

How can I do that?

In general, is there a way to "unroll" a setof into a regular query?


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

Предыдущее
От: David Rees
Дата:
Сообщение: Re: SSD Drives
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: SSD Drives