Re: coalesce and nvl question

From: Doug McNaught <doug(at)mcnaught(dot)org>
To: Simon Windsor <simon(dot)windsor(at)cornfield(dot)org(dot)uk>
Cc: Mike Mascari <mascarm(at)mascari(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: coalesce and nvl question
Date: 2004-06-23 18:35:05
Message-ID: 878yeedsx2.fsf@asmodeus.mcnaught.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Simon Windsor <simon(dot)windsor(at)cornfield(dot)org(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2004-06-23 18:36:23 Re: insert with select as value
Previous Message Simon Windsor 2004-06-23 18:10:05 Re: coalesce and nvl question