Re: Date Math

Поиск
Список
Период
Сортировка
От Jean-Luc Lachance
Тема Re: Date Math
Дата
Msg-id 3F0C6372.933B8EC9@nsd.ca
обсуждение исходный текст
Ответ на Date Math  (John Goetsch <jg@seacode.com>)
Ответы Re: Date Math  (Guy Fraser <guy@incentre.net>)
Список pgsql-general
Try:

update foo set  timestamp_field  = timestamp_field + '365
days'::interval;


John Goetsch wrote:
>
> Hi,
>
> I am trying to modify some timestamps in the database and cannot find
> documentation relating to date/timestamp manipulation.
>
> What I am thinking of something like:
>
> update foo set  timestamp_field  = timestamp_field + 365;
>
> where the 365 is days, or seconds or something.
>
> Any hints?
>
> Thanks
> john
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

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

Предыдущее
От: Don Isgitt
Дата:
Сообщение: Re: Failing ODBC connection
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: ERROR: Relation "pg_user" does not exist