Re: Date help - Mailing list pgsql-novice

From Lukasz Brodziak
Subject Re: Date help
Date
Msg-id AANLkTimdzaL6jFizzGQhjQp+BOCtmLAud3t=4Db+BN3B@mail.gmail.com
Whole thread Raw
In response to Re: Date help  (richard terry <rterry@pacific.net.au>)
List pgsql-novice
There is another way but it might affect the performance: WHERE
<date_field> BETWEEN <past_date> AND Now() / CURRENT_DATE;

2010/10/5 richard terry <rterry@pacific.net.au>:
> On Tuesday 05 October 2010 13:49:41 Garrett Murphy wrote:
>> WHERE date_field>=(CURRENT_DATE-INTERVAL '1 month')
>>
> thanks for the suggestion, I'll take a look tonight about this and get back to
> the list.
>
> richard
>
> --
> Sent via pgsql-novice mailing list (pgsql-novice@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-novice
>



--
Łukasz Brodziak
II MU Bioinformatyka

pgsql-novice by date:

Previous
From: richard terry
Date:
Subject: Re: Date help
Next
From: Mladen Gogala
Date:
Subject: Re: Incremental Backup