This Is A FineDay

            BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            93 隨筆 :: 0 文章 :: 69 評(píng)論 :: 0 Trackbacks
          ora sql 強(qiáng)行用某個(gè)索引
          select /*+index(t_customer idx_t_cust_area_name)*/????--強(qiáng)行利用t_customer的索引?idx_t_cust_area_name?進(jìn)行查詢
          ???????? count(*)
          ????????? into v_count
          ????????? from t_customer
          ???????? where parent_cust_id = in_parent_cust_id
          ?????????? and type = 1
          ?????????? and customer_area_code = in_customer_area_code
          ?????????? and customer_name = in_customer_name;

          分析表
          analyze table T_INDUSTRY compute statistics;
          posted on 2007-05-18 17:17 Peter Pan 閱讀(264) 評(píng)論(0)  編輯  收藏 所屬分類: DB
          主站蜘蛛池模板: 双桥区| 镶黄旗| 夹江县| 聂拉木县| 新龙县| 周口市| 元氏县| 顺昌县| 永福县| 曲松县| 开鲁县| 桐城市| 龙江县| 安平县| 化德县| 庆阳市| 南开区| 营山县| 定安县| 星子县| 阜城县| 聂拉木县| 宝丰县| 苏州市| 达日县| 宁津县| 曲阳县| 佛冈县| 永和县| 襄樊市| 海兴县| 潮州市| 昭苏县| 曲沃县| 南召县| 海口市| 汶川县| 定西市| 合阳县| 图木舒克市| 九江市|