How should I phrase this?

From: Paul Tomblin <ptomblin(at)xcski(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: How should I phrase this?
Date: 2001-07-08 18:12:31
Message-ID: 20010708141231.A7550@allhats.xcski.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I've got a table that I insert a value and a timestamp "now()". Then I
want to delete entries that are older than 30 minutes old. After some
experimentation, I found the following works, but it looks awkward and
backwards. Is there a better, more readable way of phrasing this or
rewriting it?

DELETE
FROM generators
WHERE age(now(),started) > interval '30 minutes'

--
Paul Tomblin <ptomblin(at)xcski(dot)com>, not speaking for anybody
"Nobody can be told what the dominatrix is, they have to see it for themselves"

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mitch Vincent 2001-07-08 18:18:42 Re: How should I phrase this?
Previous Message Doug McNaught 2001-07-08 18:01:37 Re: Postgres and C/C++