Re: how to add 'time with time zone' data types and 'interval' data types

Поиск
Список
Период
Сортировка
От Binand Sethumadhavan
Тема Re: how to add 'time with time zone' data types and 'interval' data types
Дата
Msg-id CAFBJCCY47XWoZgpcAuhK93+cNdhkVmy2_3wFPr8i6bOa6dCZ6A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: how to add 'time with time zone' data types and 'interval' data types  (avpro avpro <avprowebeden@gmail.com>)
Список pgsql-novice
On 7 January 2014 20:58, avpro avpro <avprowebeden@gmail.com> wrote:
> select '12:00'::time - '9:00'::time; didn't work.

This ought to work, oughtn't it?

binand=# select '12:00'::time - '9:00'::time as duration;
 duration
----------
 03:00:00
(1 row)

Binand


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

Предыдущее
От: avpro avpro
Дата:
Сообщение: Re: how to add 'time with time zone' data types and 'interval' data types
Следующее
От: Kevin Grittner
Дата:
Сообщение: Re: how to add 'time with time zone' data types and 'interval' data types