Re: DATE field subtraction - Mailing list pgsql-general

From Peter Gibbs
Subject Re: DATE field subtraction
Date
Msg-id 023a01c2476e$24aa2420$0b01010a@emkel.co.za
Whole thread Raw
In response to DATE field subtraction  (Ralph Graulich <maillist@shauny.de>)
List 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



pgsql-general by date:

Previous
From: Ralph Graulich
Date:
Subject: DATE field subtraction
Next
From: Martijn van Oosterhout
Date:
Subject: Re: DATE field subtraction