摘要: url: http://baijiahao.baidu.com/s?id=1585283048635726204&wfr=spider&for=pc 阅读全文
posted @ 2019-03-05 18:20 毛会懂 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/shipengzhi/archive/2012/09/20/2695825.html OR、in和union all 查询效率到底哪个快。 网上很多的声音都是说union all 快于 or、in,因为or、in会导致全表扫描,他们给出了很多的实 阅读全文
posted @ 2019-03-05 17:40 毛会懂 阅读(6099) 评论(0) 推荐(1) 编辑
摘要: WHY? IN 和 NOT IN 是比较常用的关键字,为什么要尽量避免呢? 1、效率低 项目中遇到这么个情况: t1表 和 t2表 都是150w条数据,600M的样子,都不算大。 但是这样一句查询 select * from t1 where phone not in (select phone f 阅读全文
posted @ 2019-03-05 17:30 毛会懂 阅读(17613) 评论(0) 推荐(1) 编辑