| От | Adam Rich |
|---|---|
| Тема | Re: calling a function over several rows |
| Дата | |
| Msg-id | 4B024415.8040500@sbcglobal.net обсуждение исходный текст |
| Ответ на | Re: calling a function over several rows (Merlin Moncure <mmoncure@gmail.com>) |
| Ответы |
Re: calling a function over several rows
|
| Список | pgsql-general |
Merlin Moncure wrote: > 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 > Thanks, that's perfect, and much faster than the one I came up with in the interim: select (f(t.value)).* from table t;
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера