Adding variable intervals to timestamps

Поиск
Список
Период
Сортировка
От Walker, Jed S
Тема Adding variable intervals to timestamps
Дата
Msg-id F7638DABBEBB4A4CB70616DE2B19E6B80672E3@COENGEXCMB01.cable.comcast.com
обсуждение исходный текст
Ответы Re: Adding variable intervals to timestamps  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-novice

Hi,

We need to add an interval (from a row in a table) to the curren time. Basically,

Table1 has the column offset_in_secs that is an integer.

Select current_timestamp + '<offset_in_secs> seconds' from table1;

But can't figure out how to do this.

-Jed

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: "external" variables and triggers
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Adding variable intervals to timestamps