<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    waterye

    Partitioned Tables

    Partitioned Tables

    -- ?Range?Partitioning?Example
    CREATE ? TABLE ?sales_range?
    (salesman_id??
    NUMBER ( 5 ),?
    salesman_name?
    VARCHAR2 ( 30 ),?
    sales_amount??
    NUMBER ( 10 ),?
    sales_date????DATE)
    PARTITION?
    BY ?RANGE(sales_date)?
    (
    PARTITION?sales_jan2006?
    VALUES ?LESS?THAN(TO_DATE( ' 02/01/2006 ' , ' MM/DD/YYYY ' )),
    PARTITION?sales_feb2006?
    VALUES ?LESS?THAN(TO_DATE( ' 03/01/2006 ' , ' MM/DD/YYYY ' )),
    PARTITION?sales_mar2006?
    VALUES ?LESS?THAN(TO_DATE( ' 04/01/2006 ' , ' MM/DD/YYYY ' )),
    PARTITION?sales_apr2006?
    VALUES ?LESS?THAN(TO_DATE( ' 05/01/2006 ' , ' MM/DD/YYYY ' )),
    PARTITION?sales_may2006?
    VALUES ?LESS?THAN(TO_DATE( ' 06/01/2006 ' , ' MM/DD/YYYY ' ))
    );


    insert ? into ?sales_range? values ( 12345 ,? ' test ' ,? 1000 ,?to_date( ' 2006-01-15 ' ,? ' yyyy-mm-dd ' ));
    insert ? into ?sales_range? values ( 12345 ,? ' test ' ,? 1000 ,?to_date( ' 2006-02-15 ' ,? ' yyyy-mm-dd ' ));
    insert ? into ?sales_range? values ( 12345 ,? ' test ' ,? 1000 ,?to_date( ' 2006-03-15 ' ,? ' yyyy-mm-dd ' ));
    insert ? into ?sales_range? values ( 12345 ,? ' test ' ,? 1000 ,?to_date( ' 2006-04-15 ' ,? ' yyyy-mm-dd ' ));
    insert ? into ?sales_range? values ( 12345 ,? ' test ' ,? 1000 ,?to_date( ' 2006-05-15 ' ,? ' yyyy-mm-dd ' ));

    create ? index ?idx_sales_range_sales_date? on ?sales_range?(sales_date);

    ALTER ? TABLE ?sales_range? DROP ?PARTITION?sales_jan2006? UPDATE ?GLOBAL?INDEXES;

    When to Partition a Table
    Here are some suggestions for when to partition a table:

    • Tables greater than 2GB should always be considered for partitioning.
    • Tables containing historical data, in which new data is added into the newest partition. A typical example is a historical table where only the current month's data is updatable and the other 11 months are read-only.

    參考:? ora92_doc/server.920/a96524/c12parti.htm

    詳細請參考oracle文檔

    posted on 2006-05-12 16:37 waterye 閱讀(1089) 評論(1)  編輯  收藏 所屬分類: oracle

    Feedback

    # re: Partitioned Tables 2007-11-25 17:55 柯夢楠

    good  回復  更多評論   

    主站蜘蛛池模板: 亚欧免费一级毛片| 97人妻精品全国免费视频 | 中文字幕在线观看亚洲日韩| 亚洲性一级理论片在线观看| 亚洲欧美成aⅴ人在线观看| caoporn国产精品免费| 在线人成免费视频69国产| 国产aⅴ无码专区亚洲av麻豆| 狠狠亚洲婷婷综合色香五月排名| 免费在线观看亚洲| 香港a毛片免费观看 | 91丁香亚洲综合社区| 午夜免费国产体验区免费的| 久久99青青精品免费观看| 亚洲尹人九九大色香蕉网站| 亚洲精华国产精华精华液网站| 免费在线观看一级片| 亚洲国产小视频精品久久久三级 | 国产精品无码亚洲精品2021| 久久免费国产视频| 不卡精品国产_亚洲人成在线| 亚洲国产综合精品中文第一| 日韩精品无码人妻免费视频| 亚洲AV人人澡人人爽人人夜夜| 亚洲中文字幕一区精品自拍| 久久久久久毛片免费播放| 99精品视频在线观看免费播放| 亚洲精品美女视频| 久久久久国产精品免费网站| 亚洲日本人成中文字幕| 国产免费看插插插视频| 亚洲一卡2卡3卡4卡5卡6卡| 免费人成年激情视频在线观看| 欧洲 亚洲 国产图片综合| www.亚洲精品.com| 日韩欧美亚洲中文乱码| 免费无码肉片在线观看| 亚洲国产成人私人影院| 久久精品无码专区免费| 亚洲国产天堂久久综合| 在免费jizzjizz在线播|