Re: Simple function

Поиск
Список
Период
Сортировка
От Christine Penner
Тема Re: Simple function
Дата
Msg-id 19740413173256.45D1B1E12F8D1DB8@edtnaa02.telusplanet.net
обсуждение исходный текст
Ответ на Simple function  (Christine Penner <christine@ingenioussoftware.com>)
Список pgsql-general
Thanks a lot, that worked great. Saved me a lot of time trying to
figure it out too.

Christine

>It works for me:
>
>postgres=# CREATE OR REPLACE FUNCTION countertest(integer) RETURNS
>bigint AS $$ SELECT COUNT(*) FROM test WHERE nbr = $1; $$ LANGUAGE
>SQL;
>CREATE FUNCTION
>postgres=# select countertest(24);
>  countertest
>-------------
>            1
>(1 row)
>
>
>http://www.postgresql.org/docs/8.4/interactive/xfunc-sql.html
>
>
>--
>Regards,
>Richard Broersma Jr.
>
>Visit the Los Angeles PostgreSQL Users Group (LAPUG)
>http://pugs.postgresql.org/lapug


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

Предыдущее
От: Raimon Fernandez
Дата:
Сообщение: Re: Extended Query, flush or sync ?
Следующее
От: Andy Shellam
Дата:
Сообщение: Re: How to add month.year column validation