| От | Scott Marlowe |
|---|---|
| Тема | Re: SELECT syntax synopsis: column_definition? |
| Дата | |
| Msg-id | dcc563d10708211842k365e15ccy631e4c43b98da996@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: SELECT syntax synopsis: column_definition? (Gregory Stark <stark@enterprisedb.com>) |
| Список | pgsql-sql |
On 8/21/07, Gregory Stark <stark@enterprisedb.com> wrote: > "Michael Glaesemann" <grzm@seespotcode.net> writes: > > > ERROR: a column definition list is only allowed for functions returning > > "record" > > > > So the *form* is right, but I don't know of an example that works. > > postgres=# create function testf() returns record as 'select 1' language sql; > CREATE FUNCTION > postgres=# select * from testf() as (i integer); > i > --- > 1 > (1 row) > > > I haven't quite figured out how this is useful though. It probably makes more > sense if you use plpgsql but I still don't quite see what the use case is. I use them with the crosstab function in the tablefunc contrib module.
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера