Re: Difference in DATEs

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Difference in DATEs
Дата
Msg-id 386.1095775282@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Difference in DATEs  ("Dean Gibson (DB Administrator)" <postgresql3@ultimeth.com>)
Список pgsql-sql
"Dean Gibson (DB Administrator)" <postgresql3@ultimeth.com> writes:
> 3. x - y < INTERVAL '...' doesn't work (but then, the minus operator is not 
> defined in the manual for two DATE values).

Sure it is: see 10th row in
http://www.postgresql.org/docs/7.4/static/functions-datetime.html#OPERATORS-DATETIME-TABLE

Forget the interval and compare to an integer.
        regards, tom lane


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

Предыдущее
От: Pierre-Frédéric Caillaud
Дата:
Сообщение: Re: degradation in performance
Следующее
От: "CHRIS HOOVER"
Дата:
Сообщение: Re: Help with function