To many records returned

Поиск
Список
Период
Сортировка
От Justin
Тема To many records returned
Дата
Msg-id 47F57E0F.9000100@emproshunts.com
обсуждение исходный текст
Ответы Re: To many records returned
Re: To many records returned
Список pgsql-general
Have a select statement with a where clause using datestamp with
timezone column compared to a date

Select * from sometable where DateStampColumn > '2008-03-31'

this returns records that are equal 2008-03-31

but when the query includes casting to date
Select * from sometable where DateStampColumn::date > '2008-03-31'
The result is correct

What is causing the difference in the results

My guess is '2008-03-31' is being cast into a datestamp value of
2008-03-31 00:00:00.00-00  which would explain why one query returns
more records.

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

Предыдущее
От: Colin Wetherbee
Дата:
Сообщение: Re: Autograph Annoucement (ERD Tool)
Следующее
От: Rodrigo Gonzalez
Дата:
Сообщение: Re: To many records returned