Re: compare month[modified]

Поиск
Список
Период
Сортировка
От george young
Тема Re: compare month[modified]
Дата
Msg-id 20060404112224.6037ccff.gry@ll.mit.edu
обсуждение исходный текст
Ответ на compare month[modified]  (shakil tanvir <tanvirshakil@yahoo.com>)
Список pgsql-novice
On Tue, 4 Apr 2006 00:05:49 -0700 (PDT)
shakil tanvir <tanvirshakil@yahoo.com> threw this fish to the penguins:

> Hi all of you PostGreSQL fans,
>
> I need to run a query like
>
> SELECT users from userlog where lastlogindate is less than one month of current date
> or
> SELECT users from userlog where lastlogindate is less than 15 days of current date

The "age" builtin function is handy in these circumstances:

  select users from userlog where age(lastlogindate) < '1 month';


> Can any one help with sql example?
>
> Shakil
> tanvirshakil@yahoo.com
>
>
> ---------------------------------
> Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.


--
"Are the gods not just?"  "Oh no, child.
What would become of us if they were?" (CSL)

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BYTEA: insert query max size
Следующее
От: inner
Дата:
Сообщение: Re: BYTEA: insert query max size