Re: returning more than one value from a function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: returning more than one value from a function
Дата
Msg-id 10764.1272754567@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: returning more than one value from a function  (Lonni J Friedman <netllama@gmail.com>)
Ответы Re: returning more than one value from a function  (Lonni J Friedman <netllama@gmail.com>)
Список pgsql-novice
Lonni J Friedman <netllama@gmail.com> writes:
> ...  Now I've got the
> opposite problem, namely that I can't find a way to have my function
> not return anything at all.  Whenever I try to remove the 'RETURN AS
> ....' portion of the function, it fails to get created.  Is it not
> possible to have a function that returns nothing?

Declare it as RETURNS VOID.  This is really just window dressing, as
the actual behavior is to return a null value, but it documents your
intention.

            regards, tom lane

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

Предыдущее
От: Lonni J Friedman
Дата:
Сообщение: Re: returning more than one value from a function
Следующее
От: gargoyle60
Дата:
Сообщение: Re: PostgreSQL Book