Re: comparing nulls

From: Chris Bowlby <excalibur(at)hub(dot)org>
To: Kenneth Gonsalves <lawgon(at)thenilgiris(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: comparing nulls
Date: 2004-01-20 13:56:57
Message-ID: 1074607016.49673.23.camel@morpheus.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi Ken,

Under 7.3.x this option was removed, you need to test via:

SELECT * from table where field IS NULL;

On Tue, 2004-01-20 at 09:43, Kenneth Gonsalves wrote:
> in postgres7.1 i had a table where an integer field could be null. There was
> no default value. a select statement like so:
> 'select * from table where field = null'
> would give all the rows where that field had no value.
> on porting to 7.3.2, this doesnt work. How to do this?
--
Chris Bowlby <excalibur(at)hub(dot)org>
Hub.Org Networking Services

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message D'Arcy J.M. Cain 2004-01-20 14:06:19 Re: comparing nulls
Previous Message Jodi Kanter 2004-01-20 13:44:34 Re: Database diagram