pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ludwig Lim <lud_nowhere_man@yahoo.com>
To: Jonathan Man <jman@equityunderwriters.com.hk>
Cc: PostgreSQL Mailing List <pgsql-sql@postgresql.org>
Subject: Re: convert NULL into a value
Date: Wed, 11 Dec 2002 20:03:47 -0800 (PST)
Message-ID: <20021212040347.81662.qmail@web80305.mail.yahoo.com> (raw)
In-Reply-To: <003701c2a194$28fc4b90$8401a8c0@equity.com>


--- Jonathan Man <jman@equityunderwriters.com.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



view thread (3+ messages)  latest in thread

Message-ID: <20021212040347.81662.qmail@web80305.mail.yahoo.com>
Permalink:  ../20021212040347.81662.qmail@web80305.mail.yahoo.com/
Also on:    postgresql.org/message-id/20021212040347.81662.qmail@web80305.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: lud_nowhere_man@yahoo.com, jman@equityunderwriters.com.hk
  Subject: Re: convert NULL into a value
  In-Reply-To: <20021212040347.81662.qmail@web80305.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox