date ranges in where

Поиск
Список
Период
Сортировка
От Miguel Miranda
Тема date ranges in where
Дата
Msg-id aa6b08350905061412x63defb39oe58e126510354a28@mail.gmail.com
обсуждение исходный текст
Ответы Re: date ranges in where  (Raymond O'Donnell <rod@iol.ie>)
Re: date ranges in where  (Erik Jones <ejones@engineyard.com>)
Re: date ranges in where  (Adrian Klaver <aklaver@comcast.net>)
Список pgsql-general
Hi, what is the recommended way to select a range of dates?

Lets say a have a table with a lastlogin (timestamp) column and i want toknow what users logged in for last time between 2009-05-01 and 2009-05-02?

I know that a simple

where lastlogin between '2009-05-01' and '2009-05-02' doesnt work beacuse it doesnt include who logged in 2009-05-02 15:30:00, etc...

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

Предыдущее
От: Richard Sickler
Дата:
Сообщение: Question on pg_xlog and pg_control placement
Следующее
От: Raymond O'Donnell
Дата:
Сообщение: Re: date ranges in where