Re: select an entry with a NULL date field

From: Jesus Aneiros <aneiros(at)jagua(dot)cfg(dot)sld(dot)cu>
To: Web Manager <web(at)inter-resa(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: select an entry with a NULL date field
Date: 2000-08-14 19:24:16
Message-ID: Pine.LNX.4.10.10008141521240.9012-100000@jagua.cfg.sld.cu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Use

select entry_id from tbl_date where date_02 is null;

NULL = NULL is undefined according to SQL standards.

--
Jesus Aneiros Sosa
mailto:aneiros(at)jagua(dot)cfg(dot)sld(dot)cu
http://jagua.cfg.sld.cu/~aneiros

On Mon, 14 Aug 2000, Web Manager wrote:

> ERROR: parser: parse error at or near "null"
> >select entry_id from tbl_date where date_02='';
> Not work, that's a wrong date format
> >select entry_id from tbl_date where date_02="";
> Not work, "" considered as an attribute
>
> Thank you for your time!
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Marc Andre Paquin
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Adam Lang 2000-08-14 20:34:23 copy from
Previous Message Henry Lafleur 2000-08-14 18:09:08 RE: select an entry with a NULL date field