Re: coalesce and nvl question

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: coalesce and nvl question
Дата
Msg-id 878yeedsx2.fsf@asmodeus.mcnaught.org
обсуждение исходный текст
Ответ на Re: coalesce and nvl question  (Simon Windsor <simon.windsor@cornfield.org.uk>)
Список pgsql-general
Simon Windsor <simon.windsor@cornfield.org.uk> writes:

> Hi
>
> I understand that null and '' are different, and MySQL and Oracle
> functions are confusing, but my question was not about replacing NULL
> but replacing Empty strings. These are handled in MySQL/Oracle by the
> same functions that do NULL checks.
>
> Is there a standard function in Postgres that replaces Empty strings, as
> against a NULL value.

I don't think so, but you could use a CASE clause for this.

-Doug

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: insert with select as value
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: coalesce and nvl question