Received: from candle.pha.pa.us (maillist@s5-03.ppp.op.net [209.152.195.67]) by hub.org (8.8.8/8.7.5) with ESMTP id PAA22441 for ; Fri, 26 Jun 1998 15:13:22 -0400 (EDT) Received: (from maillist@localhost) by candle.pha.pa.us (8.8.5/8.8.5) id PAA01028; Fri, 26 Jun 1998 15:13:35 -0400 (EDT) From: Bruce Momjian Message-Id: <199806261913.PAA01028@candle.pha.pa.us> Subject: Re: [SQL] isnull function] To: kachun@pathlink.net (Kachun Lee) Date: Fri, 26 Jun 1998 15:13:34 -0400 (EDT) Cc: pgsql-sql@hub.org In-Reply-To: <3.0.1.32.19980626104203.006aadc4@rr.pathlink.com> from "Kachun Lee" at Jun 26, 98 10:42:03 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > > Is there an isnull function avaliable in postgres, such as: > > select isnull(dt_field, 'now') ... > > Thanks > > I don't tbink so, but it would be nice. I think Ingres has it. It also would not be hard to write as a loadable function. -- Bruce Momjian | 830 Blythe Avenue maillist@candle.pha.pa.us | Drexel Hill, Pennsylvania 19026 + If your life is a hard drive, | (610) 353-9879(w) + Christ can be your backup. | (610) 853-3000(h)