pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kate Collins <klcollins@wsicorp.com>
To: Web Manager <web@inter-resa.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: select an entry with a NULL date field
Date: Mon, 14 Aug 2000 13:02:32 -0400
Message-ID: <39982628.D75E03FD@wsicorp.com> (raw)
References: <3997FC0F.96ACA1A8@inter-resa.com>

Try:

select entry_id from tbl_date where date02 is null;

Kate

Web Manager wrote:

> Hello,
>
> I have a problem with PostgreSQL when I try to select or delete an entry
> with an empty date. That's a typical entry
>
> Table tbl_date
> -----------------------------
> entry_id    154
> date_01    2000-01-15
> date_02    this date is NULL
> name        my_test
> -----------------------------
>
> I want to select every entry containing date_02 as NULL
> I tried :
> >select entry_id from tbl_date where date_02=NULL;
> 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

--
=================================================
Katherine (Kate) L. Collins
Senior Software Engineer/Meteorologist
Weather Services International (WSI Corporation)
4 Federal Street
Billerica, MA 01821
EMAIL:  klcollins@wsicorp.com
PHONE:  (978) 670-5110
FAX:    (978) 670-5100
http://www.intellicast.com





view thread (7+ messages)  latest in thread

Message-ID: <39982628.D75E03FD@wsicorp.com>
Permalink:  ../39982628.D75E03FD@wsicorp.com/
Also on:    postgresql.org/message-id/39982628.D75E03FD@wsicorp.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: klcollins@wsicorp.com, web@inter-resa.com
  Subject: Re: select an entry with a NULL date field
  In-Reply-To: <39982628.D75E03FD@wsicorp.com>
  References: <3997FC0F.96ACA1A8@inter-resa.com> <39982628.D75E03FD@wsicorp.com>

* 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