Re: Null in the where-clause

From: Lee Harr <missive(at)frontiernet(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Null in the where-clause
Date: 2002-07-05 22:39:43
Message-ID: ag577e$2idf$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> I've got a problem with the "null"-statement within the where-clause.
> I installed the postgres-server 7.2.1 on a Suse Linux machine.
> Then I imported an existing databasedump.
> But when I make the following query:
> select * from tbl_categories where categoryid=null;
> I get 0 rows as result, but there are several records, which
> corrsponds to my query.
> What could be the problem? Do I have to reinstall the server
> with a special parameter?
>

Try this:

select * from tbl_categories where categoryid is null;

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sander Steffann 2002-07-05 22:44:07 Re: I am being interviewed by OReilly
Previous Message Robert L Mathews 2002-07-05 22:23:41 Re: epoch from date field