Re: DATE field subtraction

From: "Peter Gibbs" <peter(at)emkel(dot)co(dot)za>
To: "Ralph Graulich" <maillist(at)shauny(dot)de>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: DATE field subtraction
Date: 2002-08-19 10:49:50
Message-ID: 023a01c2476e$24aa2420$0b01010a@emkel.co.za
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ralph Graulich wrote:
> SELECT [...]
> FROM table
> WHERE datefield >= '2002-08-19' - interval '4 weeks'

There are probably shorter forms, but the full version would be:
'2002-08-19'::date - '4 weeks'::interval
--
Peter Gibbs
EmKel Systems

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2002-08-19 11:38:35 Re: DATE field subtraction
Previous Message Ralph Graulich 2002-08-19 10:33:34 DATE field subtraction