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 0973BD1B46D for ; Fri, 19 Dec 2003 16:31:34 +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 30073-09 for ; Fri, 19 Dec 2003 12:30:45 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 17739D1B48D for ; Fri, 19 Dec 2003 12:30:45 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id hBJGUcU6042124 for ; Fri, 19 Dec 2003 16:30:38 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id hBJG817t009309 for pgsql-sql@postgresql.org; Fri, 19 Dec 2003 16:08:01 GMT From: CoL X-Newsgroups: comp.databases.postgresql.sql Subject: Re: testing for null value in integer field? Date: Fri, 19 Dec 2003 17:08:36 +0100 Organization: Hub.Org Networking Services Lines: 16 Message-ID: References: <3FE32231.5030207@3times25.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en In-Reply-To: <3FE32231.5030207@3times25.net> To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/151 X-Sequence-Number: 16317 try: column is null, as manual shows. 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. C.