1 or (待确认)、in(待确认)
2 like '%abc' 或者 like‘%abc%’
3 where num/2=100 或者 subString(a,1,3)='ab'
4 where id !=2 或者 where id <> 2
5 where name is null
6 复合索引a-b-c,a用到,b用不到,c用不到,ab有效,ba有效,a or b无效,ac有效,bc无效,abc有效
https://blog.csdn.net/Abysscarry/article/details/80792876
7 Mysql复合索引,条件中有or时使用不到 https://blog.csdn.net/u010002184/article/details/85195328
原文:https://blog.csdn.net/u010002184/article/details/89388600