Re: PL/pgSQL and SETOF

Поиск
Список
Период
Сортировка
От Cultural Sublimation
Тема Re: PL/pgSQL and SETOF
Дата
Msg-id 578170.14392.qm@web63401.mail.re1.yahoo.com
обсуждение исходный текст
Ответ на Re: PL/pgSQL and SETOF  (Sam Mason <sam@samason.me.uk>)
Ответы Re: PL/pgSQL and SETOF
Список pgsql-general
> I would guess you're calling it like:
>
>   SELECT get_items2();
>
> whereas, you should call set returning functions like:
>
>   SELECT * FROM get_items2();

Hi,

Yeah, that was the problem -- thanks!

But still on that subject: is my version of get_items2 the simplest
that is possible in PL/pgSQL?  It seems awfully verbose compared to
the SQL version...

Regards,
C.S.



      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page.
http://www.yahoo.com/r/hs

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

Предыдущее
От: "Pavel Stehule"
Дата:
Сообщение: Re: PL/pgSQL and SETOF
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: PL/pgSQL and SETOF