Re: Select default values

Поиск
Список
Период
Сортировка
От Giorgio Valoti
Тема Re: Select default values
Дата
Msg-id 1E799827-0C8E-4238-8D9F-F7DBA2B99DFF@mac.com
обсуждение исходный текст
Ответ на Re: Select default values  (Richard Huxton <dev@archonet.com>)
Ответы Re: Select default values  ("Richard Broersma" <richard.broersma@gmail.com>)
Список pgsql-sql
On 24/lug/08, at 12:42, Richard Huxton wrote:

> Giorgio Valoti wrote:
>>> postgres=# insert into f(a,b) values(default, default) returning *;
>> It seems that you can’t use the same syntax with function calls:
>> select function(default,default);
>> gives a syntax error. Is it expected?
>
> Um - there is no default value for a function.

Yes, but you could define a domain with a default value and using it
as an IN argument for a function. In that case it would handy to be
able to use the default value, wouldn’t it? Without this "feature" you
have to overload the function arguments.

--
Giorgio Valoti



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

Предыдущее
От: "Jaime Casanova"
Дата:
Сообщение: Re: postgres time zone settings
Следующее
От: "Richard Broersma"
Дата:
Сообщение: Re: Select default values