pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: José Soares <jose@sferacarta.com>
To: Roland_DUBOULOZ <Roland.Dubouloz@bull.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] date
Date: Wed, 16 Jun 1999 17:55:47 +0200
Message-ID: <3767C903.CB21EA1B@sferacarta.com> (raw)
References: <3767B63E.6A8AEF00@bull.net>



Roland_DUBOULOZ ha scritto:

> I have a table like this :
>    table  books (name varchar , return_date date)
>
> The field return_date is not initialized :
> insert into books values (name1);
> insert into books values (namex);
>
> The field return_date is updated when the books is returned like this :
>
> update books set return_date='10-06-1999' where name=xxx;
>
> How can i select all the item where the return_date is not updated ?
>
> a request like this :
>
> select * from books where return_date=''  ????
>

SELECT * FROM books WHERE return_date IS NULL;

>
> (actually i initialised the return_date with the values '01-01-0001')
>
> thank you.
>
> --
> Roland Dubouloz                 BULL XS/BU
> BULL SA                         mailto:Roland.Dubouloz@bull.net
> 1,Rue de Provence               Phone :+33 (0)4 76 29 77 87
> BP 208                          Bullcom : 229-7787
> 38432 Echirolles CEDEX          Office  : A1-052
> France                          Fax     : +33 (0)4 76 29 70 02

______________________________________________________________
PostgreSQL 6.5.0 on i586-pc-linux-gnu, compiled by gcc 2.7.2.3
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jose'





view thread (20+ messages)  latest in thread

Message-ID: <3767C903.CB21EA1B@sferacarta.com>
Permalink:  ../3767C903.CB21EA1B@sferacarta.com/
Also on:    postgresql.org/message-id/3767C903.CB21EA1B@sferacarta.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jose@sferacarta.com, Roland.Dubouloz@bull.net
  Subject: Re: [SQL] date
  In-Reply-To: <3767C903.CB21EA1B@sferacarta.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