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 108BCD1B4B3 for ; Fri, 19 Dec 2003 16:20:37 +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 30081-05 for ; Fri, 19 Dec 2003 12:19:48 -0400 (AST) Received: from 3times25.net (66-23-202-190.clients.speedfactory.net [66.23.202.190]) by svr1.postgresql.org (Postfix) with ESMTP id 817BBD1B4D4 for ; Fri, 19 Dec 2003 12:19:41 -0400 (AST) Received: from 3times25.net (localhost [127.0.0.1]) by 3times25.net (Postfix) with ESMTP id 2657441E97 for ; Fri, 19 Dec 2003 11:22:22 -0500 (EST) Message-ID: <3FE325BD.1040507@3times25.net> Date: Fri, 19 Dec 2003 11:22:21 -0500 From: Geoffrey User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: 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> <3FE32368.30303@kencast.com> In-Reply-To: <3FE32368.30303@kencast.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/132 X-Sequence-Number: 16298 Wei Weng wrote: > 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. >> > It is actually WHERE intnumber IS NULL. You don't use operator = to > compare with NULLs, you use IS. Thank you muchly.... -- Until later, Geoffrey esoteric@3times25.net Building secure systems inspite of Microsoft