Re: CASE WHEN foo IS NULL THEN DEFAULT ELSE foo END

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CASE WHEN foo IS NULL THEN DEFAULT ELSE foo END
Дата
Msg-id 4626.1117808194@sss.pgh.pa.us
обсуждение исходный текст
Ответ на CASE WHEN foo IS NULL THEN DEFAULT ELSE foo END  (Markus Bertheau ☭ <twanger@bluetwanger.de>)
Список pgsql-sql
Markus Bertheau ☭ <twanger@bluetwanger.de> writes:
> is it planned to support the following insert syntax?

> INSERT INTO table VALUES (CASE WHEN arg_whatever IS NULL THEN DEFAULT
> ELSE arg_whatever END);

No.  AFAICS, SQL99 only defines DEFAULT as the direct INSERT or UPDATE
target expression.
        regards, tom lane


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