Re: Date math question

Поиск
Список
Период
Сортировка
От Raymond O'Donnell
Тема Re: Date math question
Дата
Msg-id 492D9CBE.9010409@iol.ie
обсуждение исходный текст
Ответ на Date math question  (Kevin Kempter <kevink@consistentstate.com>)
Список pgsql-general
On 26/11/2008 18:54, Kevin Kempter wrote:

> I have a table that contains 2 columns ts (a timestamp) and dursec (a float -
> number of seconds)
>
> I want to insert the following into another table:
>
> the ts (timestamp column) and a second date which is ts + dursec

Something like this? -

select ts, ts + (dursec * interval '1 second')....

Ray.

------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

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

Предыдущее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: Date math question
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Odd on-update inconsistency