Mysql索引不生效的可能原因

1.不符合最左前缀原则
2.对索引字段做了运算
3.模糊查询使用了前模糊
4.not in或者 !=
5.连续between
6.有or
有遗漏可以补充

你可能感兴趣的:(基础)