Re: calling a function over several rows

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: calling a function over several rows
Дата
Msg-id b42b73150911162215i72a2ae0bg5d6fe38e73dfefe4@mail.gmail.com
обсуждение исходный текст
Ответ на calling a function over several rows  (Adam Rich <adam.r@sbcglobal.net>)
Ответы Re: calling a function over several rows  (Adam Rich <adam.r@sbcglobal.net>)
Список pgsql-general
On Tue, Nov 17, 2009 at 1:02 AM, Adam Rich <adam.r@sbcglobal.net> wrote:
> Hello,
> There is an existing function which takes an integer and returns a record.
>  I need to call this function with every integer in a table.  Is there a
> simple shortcut for doing this?
>
> I'm looking for something like:
>
> select f.*
> from function(t.value) f, table t

select (f).* from (select function(t.value) as f from table t) q;

merlin

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

Предыдущее
От: Adam Rich
Дата:
Сообщение: calling a function over several rows
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: calling a function over several rows