Re: [JDBC] select * from mytable where myfield=null;

From: Jeremy Buchmann <jeremy(at)wellsgaming(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: [JDBC] select * from mytable where myfield=null;
Date: 2002-05-14 15:29:06
Message-ID: 3CE12D42.3010508@wellsgaming.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-jdbc

Hoanui Morangie wrote:
> Well Marin, it is a solution but I'm afraid it would bring more
> troubles then benefits. You have dummy values and dummy tupples and have
> to be careful all the time to prevent mess in your data. I prefer using
> NULL value - it's interpretation unambiguous.
>
> Hoanui
>

(This comes from the JDBC list but it's a question for everyone)

So this no longer works in 7.2:

select * from tablename where foo = null;

But what about the isnull operator/keyword/whatever it is...

select * from tablename where foo isnull;

I use that on occasion (in 7.1.2)...did this change in 7.2 also?

--Jeremy

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Sullivan 2002-05-14 15:29:59 Re: transitioning postgres oid
Previous Message Scott Marlowe 2002-05-14 15:28:40 Re: transitioning postgres oid

Browse pgsql-jdbc by date

  From Date Subject
Next Message Jeremy Buchmann 2002-05-14 18:21:53 Re: select * from mytable where myfield=null;
Previous Message Cathal de Brun 2002-05-14 14:58:52 Re: j2ee compatiable jdbc driver on jdbc.postgresql.org?