Re: Simple Question

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Simple Question
Дата
Msg-id 4791.1105483400@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Simple Question  (Terry Lee Tucker <terry@esc1.com>)
Список pgsql-sql
Terry Lee Tucker <terry@esc1.com> writes:
> I'm trying to figure out how to convert a floating point value into an 
> interval of time.

Use something like

regression=# select  (478 / 45.0) * '1 hour'::interval;?column?
----------10:37:20
(1 row)

... or whatever other scale factor you have in mind.
        regards, tom lane


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

Предыдущее
От: Terry Lee Tucker
Дата:
Сообщение: Re: Simple Question
Следующее
От: sad
Дата:
Сообщение: Re: Single row tables