select *
from table
where date > '2010-07-20 03:21:52'
which I would expect to not give me any results… EXCEPT I’m getting a record with a datetime of 2010-07-20 03:21:52.577
how can I make the query ignore milliseconds?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You just have to figure out the millisecond part of the date and subtract it out before comparison, like this: