select * from myTable where myInt
will not show any possible_keys when explaining the query even though there is an index on myInt field.
Edit:
The index in question is not unique.
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.
For MySQL to use the index, you have to explicitly compare the int field to a value (e.g. true, 1).