pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Geoffrey <esoteric@3times25.net>
To: pgsql-sql@postgresql.org
Subject: Re: testing for null value in integer field?
Date: Fri, 19 Dec 2003 11:22:21 -0500
Message-ID: <3FE325BD.1040507@3times25.net> (raw)
In-Reply-To: <3FE32368.30303@kencast.com>
References: <3FE32231.5030207@3times25.net>
	<3FE32368.30303@kencast.com>

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




view thread (5+ messages)

Message-ID: <3FE325BD.1040507@3times25.net>
Permalink:  ../3FE325BD.1040507@3times25.net/
Also on:    postgresql.org/message-id/3FE325BD.1040507@3times25.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: esoteric@3times25.net
  Subject: Re: testing for null value in integer field?
  In-Reply-To: <3FE325BD.1040507@3times25.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox