first try at postgres functions

Поиск
Список
Период
Сортировка
От Kevin B.
Тема first try at postgres functions
Дата
Msg-id 33039.67.87.27.161.1101960180.squirrel@www.ke5in.com
обсуждение исходный текст
Ответы Re: first try at postgres functions  (Michael Fuhr <mike@fuhr.org>)
Re: first try at postgres functions  ("Robert Wimmer" <seppwimmer@hotmail.com>)
Список pgsql-novice
Hi,
I'm not sure why this does not work.

create or replace function test1() returns int as '
 return 1;
' LANGUAGE 'plpgsql';

select  test1();

--------------------------------------------------------

I also tried this:

create or replace function test1() returns int as '
 select 1;
' LANGUAGE 'plpgsql';

select  test1();


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: catch runtime errors
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: first try at postgres functions