少年阿賓

          那些青春的歲月

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            500 Posts :: 0 Stories :: 135 Comments :: 0 Trackbacks

          常用鏈接

          留言簿(22)

          我參與的團隊

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          //oracle解釋執行計劃
          SQL> explain plan for select t.* from abin1 t where t.id<200;
           
          Explained
           
          SQL> select * from table(dbms_xplan.display);
           
          PLAN_TABLE_OUTPUT
          --------------------------------------------------------------------------------
          Plan hash value: 1270356885
          ---------------------------------------------------------------------------
          | Id  | Operation         | Name  | Rows  | Bytes | Cost (%CPU)| Time     |
          ---------------------------------------------------------------------------
          |   0 | SELECT STATEMENT  |       |    98 |  1862 |     2   (0)| 00:00:01 |
          |*  1 |  TABLE ACCESS FULL| ABIN1 |    98 |  1862 |     2   (0)| 00:00:01 |
          ---------------------------------------------------------------------------
          Predicate Information (identified by operation id):
          ---------------------------------------------------
             1 - filter("T"."ID"<200)
           
          13 rows selected
           
          SQL> 


          //mysql解釋執行計劃
          explain select t.* from user_rest t where id<>8 

          //oracle收集表的統計信息
          analyze table abin1 compute statistics;

          posted on 2013-12-28 01:40 abin 閱讀(561) 評論(0)  編輯  收藏 所屬分類: Database
          主站蜘蛛池模板: 濉溪县| 黑水县| 甘孜县| 鸡东县| 鄄城县| 淮安市| 砀山县| 广德县| 沐川县| 麦盖提县| 汝南县| 太湖县| 神木县| 京山县| 黄骅市| 克拉玛依市| 三江| 易门县| 临桂县| 读书| 涪陵区| 左贡县| 松阳县| 沙雅县| 兴化市| 宾川县| 绥中县| 庆元县| 信丰县| 三门峡市| 慈利县| 西充县| 普安县| 山丹县| 车险| 永平县| 新化县| 厦门市| 延边| 盐亭县| 舟山市|