Re: Default values in functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Default values in functions
Дата
Msg-id 2185155.1640824315@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Default values in functions  (Michael Lewis <mlewis@entrata.com>)
Ответы Re: Default values in functions  (Michael Lewis <mlewis@entrata.com>)
Список pgsql-general
Michael Lewis <mlewis@entrata.com> writes:
> Thanks sir. It seems unfortunate that there is not a way to indicate
> absence of the third parameter if I need to set a value for the fourth
> parameter.

The way to do that is to use named parameters and the associated
call syntax, ie something like

select myfunc(param1 => 42, param3 => 99);

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Default values in functions
Следующее
От: Michael Lewis
Дата:
Сообщение: Re: Default values in functions