indexing datetime

Поиск
Список
Период
Сортировка
От Sergei Barbarash
Тема indexing datetime
Дата
Msg-id 199809020707.LAA22700@zaraza.dot.ru
обсуждение исходный текст
Список pgsql-sql
I have a very large and fast-growing table with a datetime field. Most of my
queries are based on date comparison as well. Like:

select * from table where time > 'Aug 1 0:0:0 1998' and time < 'Sep 1 0:0:0
1998';

How can I index the table to optimize my queries? Or maybe datetime is a bad
choice for this?

-- Sergei



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

Предыдущее
От: David Hartwig
Дата:
Сообщение: Re: [SQL] How to Make Case InSensitive???
Следующее
От: Sferacarta Software
Дата:
Сообщение: Re: [SQL] upper() and lower() on varchar