Re: using dates in pgsql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: using dates in pgsql
Дата
Msg-id 11123.1062078073@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: using dates in pgsql  (Ron Johnson <ron.l.johnson@cox.net>)
Ответы Re: using dates in pgsql  (Ron Johnson <ron.l.johnson@cox.net>)
Список pgsql-novice
Ron Johnson <ron.l.johnson@cox.net> writes:
> On Wed, 2003-08-27 at 23:28, Tom Lane wrote:
>> WHERE  activedate < (CURRENT_DATE - 188)

> How does pg know that that's 188 days, and not months or years?

<shrug> ... that's what the "date - integer" operator is defined to do.
If you want some other behavior, create another operator.

            regards, tom lane

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

Предыдущее
От: Stuart Woodward
Дата:
Сообщение: From which version was DROP ... CASCADE supported?
Следующее
От: Ron Johnson
Дата:
Сообщение: Re: using dates in pgsql