Sql优化思路

1、表的数据范围

2、表连接方式和on条件

3、连接索引index

4、where条件顺序(从后往上执行)

5、where条件是否增加索引

6、having和exists

原文地址:https://www.cnblogs.com/meng-ma-blogs/p/14138420.html