how to get number of minutes?

Поиск
Список
Период
Сортировка
От Chris Hoover
Тема how to get number of minutes?
Дата
Msg-id 1d219a6f0610061222gfee862fo3883ca5659d6c07a@mail.gmail.com
обсуждение исходный текст
Ответы Re: how to get number of minutes?
Список pgsql-general
If I subtract 2 timestamps, how do I get the results returned as the total number of minutes.

example

now() - (now()-'2 hours'::interval) = 2:00:00  -- I need the result returned as 120 minutes.

Thanks,

Chris

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