I have this query:
select id from table where date >= @idate
I want to set the time of the date attribute in the where = 00:00
How can I do it?
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.
e.g.
Note that this will not make good use of any index on the date field, and so you may see poor performance especially with higher data volumes.
Alternatives would be to:
– re-evaluate what you’re trying to achieve and how
– store the date and time elements of the field in 2 separate, indexable fields.