Re: TODAY and CURRENT?

From: Mike Castle <dalgoda(at)ix(dot)netcom(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: TODAY and CURRENT?
Date: 2000-12-19 20:22:04
Message-ID: 20001219142204.B31681@thune.mrc-home.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)ix(dot)netcom(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mateu Batle 2000-12-19 20:54:45 type bytea and large objects
Previous Message Luis Magaa 2000-12-19 20:16:18 Compiling on Win32