Received: from bologna.nettuno.it (bologna.nettuno.it [193.43.2.1]) by hub.org (8.9.3/8.9.3) with ESMTP id LAA39191 for ; Wed, 16 Jun 1999 11:57:43 -0400 (EDT) (envelope-from jose@sferacarta.com) Received: from proxy.sferacarta.com (mail@sfcabop1.nettuno.it [193.207.10.213]) by bologna.nettuno.it (8.8.6/8.8.8/NETTuno 3.2) with ESMTP id RAA00101; Wed, 16 Jun 1999 17:57:37 +0200 (MDT) Received: from rosso.sferacarta.com (sferacarta.com) [10.20.30.5] by proxy.sferacarta.com with esmtp (Exim 2.05 #1 (Debian)) id 10uJxd-0005AX-00; Wed, 16 Jun 1999 17:58:53 +0000 Message-ID: <3767C903.CB21EA1B@sferacarta.com> Date: Wed, 16 Jun 1999 17:55:47 +0200 From: =?iso-8859-1?Q?Jos=E9?= Soares X-Mailer: Mozilla 4.5 [it] (Win95; I) X-Accept-Language: it MIME-Version: 1.0 To: Roland_DUBOULOZ CC: pgsql-sql@postgresql.org Subject: Re: [SQL] date References: <3767B63E.6A8AEF00@bull.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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'