2018年3月19日

SQL优化技巧

摘要: (1)负向条件查询不能使用索引 select * from order where status!=0 and stauts!=1 not in/not exists都不是好习惯 可以优化为in查询: select * from order where status in(2,3) (2)前导模糊查 阅读全文

posted @ 2018-03-19 12:47 时间朋友 阅读(333) 评论(0) 推荐(0)

导航