Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f7F4ZDP47933 for ; Wed, 15 Aug 2001 00:35:13 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id f7F4Z1Y24832; Wed, 15 Aug 2001 00:35:01 -0400 (EDT) To: "Bill" cc: pgsql-sql@postgresql.org Subject: Re: Re: DateDiff, IsNull? In-reply-to: <9lcrij$15lk$2@news.tht.net> References: <9lb25o$psq$1@news.tht.net> <9lcrij$15lk$2@news.tht.net> Comments: In-reply-to "Bill" message dated "Wed, 15 Aug 2001 11:44:27 +0800" Date: Wed, 15 Aug 2001 00:35:00 -0400 Message-ID: <24829.997850100@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200108/203 X-Sequence-Number: 4435 "Bill" 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