Re: convert NULL into a value

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Jonathan Man <jman(at)equityunderwriters(dot)com(dot)hk>
Cc: pgsql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: convert NULL into a value
Date: 2002-12-12 04:03:34
Message-ID: 200212120403.gBC43ZR07085@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


No, the SQL standard command is COALESCE.

---------------------------------------------------------------------------

Jonathan Man wrote:
> Hi,
>
> There is a function on the Oracle. That is NVL(field, 0) to convert null into a value (e.g. ZERO).
>
> Can I use this function on the PostgreSQL??
>
>
> Thank you for your help!!
>
> Regards,
>
> JONATHAN MAN

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Ludwig Lim 2002-12-12 04:03:47 Re: convert NULL into a value
Previous Message ksql 2002-12-12 03:36:57 Backup to data base how ?