案例七
点击(此处)折叠或打开
- --query08.sql
- --优化程序使用customers表上的主键来解析此查询. 最终成本极低.
- SET ECHO ON
- SET TIMING ON
- SET AUTOTRACE TRACEONLY
- SET PAGESIZE 1000
-
- @flush.sql
- SELECT c.* FROM customers c WHERE cust_id IN (88340, 104590, 44910);
-
- SET TIMING OFF
- SET AUTOTRACE OFF
-
![](http://img.blog.itpub.net/blog/attachment/201401/19/17013648_1390099486S7pt.png?x-oss-process=style/bb)
![](http://img.blog.itpub.net/blog/attachment/201401/19/17013648_139009952761P5.png?x-oss-process=style/bb)
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/17013648/viewspace-1072698/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/17013648/viewspace-1072698/