Re: using dates in pgsql

Поиск
Список
Период
Сортировка
От Ron Johnson
Тема Re: using dates in pgsql
Дата
Msg-id 1062080015.25751.319.camel@haggis
обсуждение исходный текст
Ответ на Re: using dates in pgsql  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
On Thu, 2003-08-28 at 08:41, Tom Lane wrote:
> 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.

Oh, ok.

--
-----------------------------------------------------------------
Ron Johnson, Jr. ron.l.johnson@cox.net
Jefferson, LA USA

"Object-oriented programming is an exceptionally bad idea which
could only have originated in California."
Edsger Dijkstra


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: using dates in pgsql
Следующее
От: WillyLinux -
Дата:
Сообщение: Unsubscribe