Re: Adding variable intervals to timestamps

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Adding variable intervals to timestamps
Дата
Msg-id 20050815204408.GA19311@wolff.to
обсуждение исходный текст
Ответ на Adding variable intervals to timestamps  ("Walker, Jed S" <Jed_Walker@cable.comcast.com>)
Список pgsql-novice
On Mon, Aug 15, 2005 at 14:27:04 -0600,
  "Walker, Jed S" <Jed_Walker@cable.comcast.com> wrote:
> 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.

Select current_timestamp + offset_in_secs * '1 seconds' from table1;

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

Предыдущее
От: "Walker, Jed S"
Дата:
Сообщение: Adding variable intervals to timestamps
Следующее
От: "Walker, Jed S"
Дата:
Сообщение: Re: Adding variable intervals to timestamps