Re: Create index on the year of a date column

Поиск
Список
Период
Сортировка
От Vincent Hikida
Тема Re: Create index on the year of a date column
Дата
Msg-id 00e201c32c7b$559a9720$6601a8c0@HOMEOFFICE
обсуждение исходный текст
Ответ на Create index on the year of a date column  ("Nick Barr" <nick.barr@webbased.co.uk>)
Список pgsql-general
> regression=# explain SELECT * FROM sm_item WHERE
> regression-# item_created_date_start BETWEEN '1685-01-01' AND
'1685-12-31';
>                                                      QUERY PLAN

Hmm, if date includes the time, shouldn't the query be:

SELECT *
     FROM sm_item
  WHERE item_created_date_start >= '1685-01-01'
         AND item_created_date_start < '1686-01-01'



Vincent Hikida,
Member of Technical Staff - Urbana Software, Inc.
"A Personalized Learning Experience"

www.UrbanaSoft.com



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

Предыдущее
От: DeJuan Jackson
Дата:
Сообщение: Re: Nulls get converted to 0 problem
Следующее
От: terry@greatgulfhomes.com
Дата:
Сообщение: Re: Nulls get converted to 0 problem