Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8BF35476A6B for ; Wed, 11 Dec 2002 23:04:07 -0500 (EST) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id 57AB1476549 for ; Wed, 11 Dec 2002 23:03:52 -0500 (EST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id gBC43ZR07085; Wed, 11 Dec 2002 23:03:35 -0500 (EST) From: Bruce Momjian Message-Id: <200212120403.gBC43ZR07085@candle.pha.pa.us> Subject: Re: convert NULL into a value In-Reply-To: <003701c2a194$28fc4b90$8401a8c0@equity.com> To: Jonathan Man Date: Wed, 11 Dec 2002 23:03:34 -0500 (EST) Cc: pgsql X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/141 X-Sequence-Number: 10729 No, the SQL standard command is COALESCE. --------------------------------------------------------------------------- Jonathan Man wrote: > Hi, > > There is a function on the Oracle. That is NVL(field, 0) to convert null into a value (e.g. ZERO). > > Can I use this function on the PostgreSQL?? > > > Thank you for your help!! > > Regards, > > JONATHAN MAN -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073