| От | Richard Huxton |
|---|---|
| Тема | Re: Querying date interval |
| Дата | |
| Msg-id | 004701c07f08$0599b800$1001a8c0@archonet.com обсуждение исходный текст |
| Ответ на | Querying date interval (Renato De Giovanni <rdg@viafractal.com.br>) |
| Список | pgsql-sql |
----- Original Message ----- From: "Renato De Giovanni" <rdg@viafractal.com.br> > Hi, > > Is there any SQL workaround to get the right results from the select > statement bellow? Or am I doing something wrong?? > > select * from testdate where field1 between '2000-10-01' and > '2000-11-30' ; > > field1 > ------------ > 2000-09-30 <---- why is it here?? > 2000-10-20 > 2000-11-25 > (3 rows) > Someone else mentioned DATESTYLE - the other thing to check is that you haven't got a local summertime adjustment on 30th Sep or 1st Oct - that caused issues in some previous versions of postgres IIRC (have a rummage in the archives) - Richard Huxton
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера