| От | Nick Peters |
|---|---|
| Тема | Comparing Dates |
| Дата | |
| Msg-id | 419D0DC6.5080504@candoltd.com обсуждение исходный текст |
| Ответы |
Re: Comparing Dates
Re: Comparing Dates |
| Список | pgsql-sql |
Hey, I am trying to compare dates in a sql statement. this is what i have tried: SELECT * FROM transactions WHERE shippingdate>2004-06-08 AND transtype='Sale'; but it returns all rows. When i switch the > with a < it returns nothing. I have even tried with todays date and have got the same results. So i guess my question is how do i compare two dates? BTW the column by the name of shippingdate is a date data type with the same format as the dates show above. Thanks in advance. -Nick
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера