Re: convert NULL into a value

From: Ludwig Lim <lud_nowhere_man(at)yahoo(dot)com>
To: Jonathan Man <jman(at)equityunderwriters(dot)com(dot)hk>
Cc: PostgreSQL Mailing List <pgsql-sql(at)postgresql(dot)org>
Subject: Re: convert NULL into a value
Date: 2002-12-12 04:03:47
Message-ID: 20021212040347.81662.qmail@web80305.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


--- Jonathan Man <jman(at)equityunderwriters(dot)com(dot)hk>
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??
>

-- The equivalent function is PostgreSQL is
SELECT COALESCE(field,0)

regards,

ludwig.

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jonathan Man 2002-12-12 04:08:43 convert NULL into a value
Previous Message Bruce Momjian 2002-12-12 04:03:34 Re: convert NULL into a value