| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера