How to return an INT4 subtracting dates?

Поиск
Список
Период
Сортировка
От Andre Lopes
Тема How to return an INT4 subtracting dates?
Дата
Msg-id AANLkTimzdwotUkXfX5SWT8-YalHEeKNs3lKQf2SsiwTV@mail.gmail.com
обсуждение исходный текст
Ответы Re: How to return an INT4 subtracting dates?  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: How to return an INT4 subtracting dates?  (Raymond O'Donnell <rod@iol.ie>)
Список pgsql-general
Hi,

I need to return an int4 subtracting two dates, but returns me an interval.

select
end_date - now() as interger_number
from hist_anuncios

How to return an integer out of this?


Best Regards,

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

Предыдущее
От: Dimitri Fontaine
Дата:
Сообщение: Re: Cognitive dissonance
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: How to return an INT4 subtracting dates?