Date math question

Поиск
Список
Период
Сортировка
От Kevin Kempter
Тема Date math question
Дата
Msg-id 200811261154.33787.kevin@kevinkempterllc.com
обсуждение исходный текст
Ответы Re: Date math question  (hubert depesz lubaczewski <depesz@depesz.com>)
Re: Date math question  (Raymond O'Donnell <rod@iol.ie>)
Список pgsql-general
Hi All;

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

I tried these select variations with no luck:

select ts, ts + interval dursec seconds from tmp2 limit 1;

select ts, ts + 'seconds' dursec from tmp2 limit 1;



Anyone know the correct syntax for this ?


Thanks in advance

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

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