Re: Simplicity in time/date functions

Поиск
Список
Период
Сортировка
От Roderick A. Anderson
Тема Re: Simplicity in time/date functions
Дата
Msg-id Pine.LNX.4.10.10201031525360.12068-100000@tincan.org
обсуждение исходный текст
Ответ на Re: Simplicity in time/date functions  (Jason Earl <jason.earl@simplot.com>)
Список pgsql-general
On 3 Jan 2002, Jason Earl wrote:
>
> Try:
>
> processdata=> SELECT CURRENT_DATE - 28;
>   ?column?
> ------------
>  2001-12-06
> (1 row)

Thank you.  I have a totally trival view that I was making overly
complex.  This fixes it.
   Point to note is the use of 'interval' gives the same 'problem'
formating.

SELECT CURRENT_DATE - interval '28 days';
        ?column?
------------------------
 2001-12-06 00:00:00-08
(1 row)


Cheers,
Rod
--
                      Let Accuracy Triumph Over Victory

                                                       Zetetic Institute
                                                        "David's Sling"
                                                         Marc Stiegler


В списке pgsql-general по дате отправления:

Предыдущее
От: Chris Albertson
Дата:
Сообщение: Re: Shipping database help desperately needed
Следующее
От: "Johnson, Shaunn"
Дата:
Сообщение: deriving a column from union