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這個復
相關文章
相關標籤/搜索