for example: if there are two WHERE clause: WHERE stringA=”value” AND intB=1.
Share
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.
In a simple query like that, no. MySQL will attempt to process the most restrictive filters in priority order, taking any indexes into account.
When you get into complex queries that joins or nested selects, there can be a real art to how you place the query conditions to best restrict the number of rows that need to be joined.