| От | Raymond O'Donnell |
|---|---|
| Тема | Re: date ranges in where |
| Дата | |
| Msg-id | 4A02D042.9090907@iol.ie обсуждение исходный текст |
| Ответ на | Re: date ranges in where (Jasen Betts <jasen@xnet.co.nz>) |
| Список | pgsql-general |
On 07/05/2009 12:59, Jasen Betts wrote: > where lastlogin::date between '2009-05-01'::date and '2009-05-02'::date > > If you leave it uncast postgres will probably convert the lastlogin to > a string and produce results other than that desired and proabaly > take longer to do it too. The OP was basing the query on a timestamp column, so I'd say Postgres was casting everything to timestamp, with the results he reported. Ray. ------------------------------------------------------------------ Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland rod@iol.ie Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals ------------------------------------------------------------------
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера