Re: coalesce and nvl question - Mailing list pgsql-general

From Doug McNaught
Subject Re: coalesce and nvl question
Date
Msg-id 878yeedsx2.fsf@asmodeus.mcnaught.org
Whole thread Raw
In response to Re: coalesce and nvl question  (Simon Windsor <simon.windsor@cornfield.org.uk>)
List 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 by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: insert with select as value
Next
From: Bruno Wolff III
Date:
Subject: Re: coalesce and nvl question