Say,i’ve to select a value from today to next sunday. How to input date?
Is there any keyword like FROM = 26-12-2001 TO = 30-12-2001
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 would typically use BETWEEN for this
WHERE YourDate BETWEEN '26-12-2001' AND '30-12-2001'although other common comparison operators can be used as well
WHERE YourDate >= '26-12-2001' AND Yourdate < '31-12-2001'Note the use of 31/12/2001 when using the lesser then comparison operator