X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 9BD2CD1B44B for ; Fri, 19 Dec 2003 16:17:32 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 27046-06 for ; Fri, 19 Dec 2003 12:16:42 -0400 (AST) Received: from bach.ccinet.ab.ca (bach.ccinet.ab.ca [198.161.96.1]) by svr1.postgresql.org (Postfix) with ESMTP id 89E02D1B470 for ; Fri, 19 Dec 2003 12:16:41 -0400 (AST) Received: from incentre.net (guy-pc.incentre.net [206.75.213.195] (may be forged)) by bach.ccinet.ab.ca (8.12.9p2/8.12.8) with ESMTP id hBJGGrsX036071 for ; Fri, 19 Dec 2003 09:16:54 -0700 (MST) (envelope-from guy@incentre.net) Message-ID: <3FE32462.10708@incentre.net> Date: Fri, 19 Dec 2003 09:16:34 -0700 From: Guy Fraser Organization: The Internet Centre User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-ca, en-gb, en-us, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Re: testing for null value in integer field? References: <3FE32231.5030207@3times25.net> In-Reply-To: <3FE32231.5030207@3times25.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/131 X-Sequence-Number: 16297 select ..... where intnumber IS NULL Geoffrey wrote: > How does one check for an unset value in an integer field? > > I've tried such things as: > > select ..... where intnumber = '' > select ...... where intnumber = ? > select ..... where intnumber = NULL > > Thanks. >