说明书-sql 优化三十六计
27 第二十七计:避免在索引列上使用 IS NULL 和 IS NOT NULL(判空操作符)......16
27.1 原理..............................................................................................................................16
27.2 举例..............................................................................................................................17
28 第二十八计:总是使用索引的第一个列..........................................................................17
28.1 原理..............................................................................................................................17
28.2 举例..............................................................................................................................17
29 第二十九计:用 UNION ALL 代替 UNION....................................................................17
29.1 原理..............................................................................................................................17
29.2 举例..............................................................................................................................18
30 第三十计:用 WHERE 代替 ORDER BY.......................................................................18
30.1 原理..............................................................................................................................18
30.2 举例..............................................................................................................................19
31 第三十一计:避免改变索引列的类型..............................................................................19
31.1 原理..............................................................................................................................19
31.2 举例..............................................................................................................................19
32 第三十二计:需要当心的 WHERE 子句.........................................................................20
32.1 原理..............................................................................................................................20
32.2 举例..............................................................................................................................20
33 第三十三计:索引使用的选择..........................................................................................20
33.1 原理..............................................................................................................................20
33.2 举例..............................................................................................................................20
34 第三十四计:避免使用耗费资源的操作..........................................................................20
34.1 原理..............................................................................................................................20
34.2 举例..............................................................................................................................21
35 第三十五计:优化 GROUP BY........................................................................................21
35.1 原理..............................................................................................................................21
35.2 举例..............................................................................................................................21
中科软科技股份有限公司 VI