pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bill <bchie@opensys.com.hk>
Cc: pgsql-sql@postgresql.org
Subject: Re: Re: DateDiff, IsNull?
Date: Wed, 15 Aug 2001 00:35:00 -0400
Message-ID: <24829.997850100@sss.pgh.pa.us> (raw)
In-Reply-To: <9lcrij$15lk$2@news.tht.net>
References: <9lb25o$psq$1@news.tht.net>
	<Pine.WNT.4.33.0108140634400.1680-100000@CX1198465-B>
	<9lcrij$15lk$2@news.tht.net>

"Bill" <bchie@opensys.com.hk> writes:
> IsNull work like this
> SELECT IsNull( user_name, '') FROM user ;
> then the query will return empty string when the field user_name is null

Apparently, IsNull is Microsoft-speak for the SQL standard's COALESCE
function.  COALESCE is defined as returning the first of its parameters
that is not NULL.

			regards, tom lane



view thread (11+ messages)  latest in thread

Message-ID: <24829.997850100@sss.pgh.pa.us>
Permalink:  ../24829.997850100@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24829.997850100@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, bchie@opensys.com.hk
  Subject: Re: Re: DateDiff, IsNull?
  In-Reply-To: <24829.997850100@sss.pgh.pa.us>

* 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