Re: Re: DateDiff, IsNull? - Mailing list pgsql-sql

From Tom Lane
Subject Re: Re: DateDiff, IsNull?
Date
Msg-id 24829.997850100@sss.pgh.pa.us
Whole thread Raw
In response to Re: DateDiff, IsNull?  ("Bill" <bchie@opensys.com.hk>)
List pgsql-sql
"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


pgsql-sql by date:

Previous
From: "Bill"
Date:
Subject: Re: DateDiff, IsNull?
Next
From: Jan Wieck
Date:
Subject: Re: result sets from functions...