索引相关 对 order by 排序的字段设置索引 不要使用 is null 、 is not null (不会使用索引) 不要使用 != (不会使用索引) 不要使用 or (不会使用索引) 不要使用 in 、not in (不会使用索引) 在表达式左侧使用运算符或者函数都会使索引失效 其他 避免条件语句中的类型转换 不要把select 子句查询写成 select *
评论区