1、where 及 order by 涉及的列上建立索引;
2、between、exists 代替 in;
3、union all 代替 or;
4、避免使用 != 或 <> 操作符;
5、不使用 is null;
6、不要使用 *;
7、。。。
1、where 及 order by 涉及的列上建立索引;
2、between、exists 代替 in;
3、union all 代替 or;
4、避免使用 != 或 <> 操作符;
5、不使用 is null;
6、不要使用 *;
7、。。。