where条件的顺序是否影响mysql的执行效率

where条件的顺序,where条件的复合索引的顺序,会不会影响效率 复合索引 explain SELECT * FROM `demo` where username=’ss’ and age=42php explain SELECT * FROM `demo` where age=42 and username=’ss’mysql 能够从上面的结果看到,两个查询都使用到了username1这个复
相关文章
相关标签/搜索