my query is as follows:
select id,
date
from table
where date < '1/31/2015' && date > '11/31/2011'
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.
If you provide the date as a string, some formats will be implicitly/automatically converted to the proper data type of the column being compared. IE:
The safest means of converting a date/time in a string to a DATETIME is to use the MySQL’s STR_TO_DATE function: