Re: Int to Interval conversion

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: Int to Interval conversion
Дата
Msg-id 1092B047-C86F-43F5-B83C-D3869E56D944@seespotcode.net
обсуждение исходный текст
Ответ на Int to Interval conversion  (Howard Cole <howardnews@selestial.com>)
Список pgsql-general
On Sep 14, 2010, at 7:57 , Howard Cole wrote:

> create table test (test_id serial primary key, time_in_minutes int);
> insert into test values (1440);
>
> Now how do I extract that as 24:00:00::interval in a query?

test=# SELECT 1440 * INTERVAL '1 minute';
 ?column?
----------
 24:00:00
(1 row)

Michael Glaesemann
grzm seespotcode net




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

Предыдущее
От: Matthieu HUIN
Дата:
Сообщение: Re: What filesystem to use for postgres?
Следующее
От: adi hirschtein
Дата:
Сообщение: Re: Monitoring Object access