Re: set returning functions.

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: set returning functions.
Дата
Msg-id 162867790709242146m70791358gfe2a9045b6512ece@mail.gmail.com
обсуждение исходный текст
Ответ на Re: set returning functions.  ("Rhys Stewart" <rhys.stewart@gmail.com>)
Ответы Re: set returning functions.  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Список pgsql-general
2007/9/25, Rhys Stewart <rhys.stewart@gmail.com>:
> yes indeed. thats exactly it scott!!!
>
> On 9/24/07, Scott Marlowe <scott.marlowe@gmail.com> wrote:
> > On 9/24/07, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> > > Hello Rhys
> > >
> > > its not mystery
> >
> > Yeah, but I think he wanted to be able to make his own function he
> > could call like:
> >
> > select myfunc(10);
> >

Then you have to use sql language

create or replace function mysrf(int)
returns setof integer as $$
select i from generate_series(1, $1) g(i);
$$ language sql;

Regards
Pavel Stehule

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

Предыдущее
От: "Anoo Sivadasan Pillai"
Дата:
Сообщение: Re: Why the ERROR: duplicate key violates uniqueconstraint "master_pkey" is raised? - Is this a Bug?
Следующее
От: "Phoenix Kiula"
Дата:
Сообщение: Re: Why the ERROR: duplicate key violates uniqueconstraint "master_pkey" is raised? - Is this a Bug?