Re: Re: DateDiff, IsNull?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Bill" <bchie(at)opensys(dot)com(dot)hk>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Re: DateDiff, IsNull?
Date: 2001-08-15 04:35:00
Message-ID: 24829.997850100@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Bill" <bchie(at)opensys(dot)com(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jan Wieck 2001-08-15 05:49:03 Re: result sets from functions...
Previous Message Tom Lane 2001-08-15 03:57:57 Re: Temp tables being written to disk. Avoidable?