![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
移动硬盘
一只特立独行的程序猿
展开
-
sql优化
sql优化总结: 1、对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引,索引使用注意的地方我的另外一篇博客有总结。 2、很多时候用 exists 代替 in 是一个好的选择: select num from a where num in(select num from b)用下面的语句替换: select num from a wher原创 2016-10-21 00:11:04 · 180 阅读 · 0 评论 -
SQL优化之索引使用
sql优化中索引使用注意的地方原创 2016-10-20 23:43:04 · 205 阅读 · 0 评论