Re: Tiiiiiiiiiiiiime

Поиск
Список
Период
Сортировка
От Alexander Dederer
Тема Re: Tiiiiiiiiiiiiime
Дата
Msg-id 9dur9q$2h29$1@news.tht.net
обсуждение исходный текст
Ответ на Tiiiiiiiiiiiiime  ("hiroko" <h_ogawa@rnk.co.jp>)
Список 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 по дате отправления:

Предыдущее
От: bscinc2000@yahoo.comNOSPAM (Al Frick)
Дата:
Сообщение: Re: Which Front End for Postgresql
Следующее
От: "Ligia Pimentel"
Дата:
Сообщение: Re: FATAL ERROR running query...