1.使用不等号 <> !=会进行全表扫描 改成 < or >就能正确使用索引 2.is null 和is not null 会跳过索引 ,最好应该把索引列标记为not null 3 使用函数 4 不匹配的数据类型