Re: TODAY and CURRENT? - Mailing list pgsql-general

From Mike Castle
Subject Re: TODAY and CURRENT?
Date
Msg-id 20001219142204.B31681@thune.mrc-home.org
Whole thread Raw
In response to TODAY and CURRENT?  (Raymond Chui <raymond.chui@noaa.gov>)
List pgsql-general
On Tue, Dec 19, 2000 at 10:37:42AM -0500, Raymond Chui wrote:
> delete from tablename where datetime < TODAY-10;

delete from tablename where datetime < timestamp 'now' - interval '10 days';

or

delete from tablename where age(datetime) > '10 days';
--
       Mike Castle       Life is like a clock:  You can work constantly
  dalgoda@ix.netcom.com  and be right all the time, or not work at all
www.netcom.com/~dalgoda/ and be right at least twice a day.  -- mrc
    We are all of us living in the shadow of Manhattan.  -- Watchmen

pgsql-general by date:

Previous
From: "Francis Solomon"
Date:
Subject: RE: TODAY and CURRENT?
Next
From: Mateu Batle
Date:
Subject: type bytea and large objects