Re: Tiiiiiiiiiiiiime - Mailing list pgsql-general

From Alexander Dederer
Subject Re: Tiiiiiiiiiiiiime
Date
Msg-id 9dur9q$2h29$1@news.tht.net
Whole thread Raw
In response to Tiiiiiiiiiiiiime  ("hiroko" <h_ogawa@rnk.co.jp>)
List pgsql-general
hiroko wrote:
> from a DB table, I'd like to SELECT out the date of 3months before.
> the command should be
>
> => select * from MYTBL where time =XXXXXX ;
>
> what whould it like to be at XXXXX ?

Try this:
SELECT  *  FROM mytbl  WHERE create_date > (now() - '3 month'::interval) ;

See date/time function manual.


pgsql-general by date:

Previous
From: bscinc2000@yahoo.comNOSPAM (Al Frick)
Date:
Subject: Re: Which Front End for Postgresql
Next
From: "Ligia Pimentel"
Date:
Subject: Re: FATAL ERROR running query...