If I use a composite index, say Field1, Field2, Field3, the order in which these fields are listed in WHERE clause will be important? And if yes, then how should I list them: from top to bottom or from bottom to top?
Do note however that when you mix "AND" and "OR" operators in a WHERE clause, "AND" us evaluated first and then "OR". Use parentheses to ensure that the order of evaluation is what you intend.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.