Re: Difference between two times as a numeric value in a stored procedure.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Difference between two times as a numeric value in a stored procedure.
Дата
Msg-id 26987.1086358293@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Difference between two times as a numeric value in a stored procedure.  ("Stijn Vanroye" <s.vanroye@Farcourier.com>)
Список pgsql-sql
"Stijn Vanroye" <s.vanroye@Farcourier.com> writes:
> I can't seem to find a way to substract two time values (or
> timestamp values) and get a numeric/float value. I always get the
> INTERVAL datatype.

extract(epoch from interval) may help.
        regards, tom lane


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: ERROR: duplicate key violates unique constraint
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: dynamic rules?