午夜国产狂喷潮在线观看|国产AⅤ精品一区二区久久|中文字幕AV中文字幕|国产看片高清在线

    oracle建分區(qū)表
    來源:易賢網 閱讀:1127 次 日期:2014-10-21 14:13:56
    溫馨提示:易賢網小編為您整理了“oracle建分區(qū)表”,方便廣大網友查閱!

    1、按月創(chuàng)建分區(qū)

    create table t_mhdp

    (

    id varchar2(50) not null,

    flt_aircode varchar2(4),

    flt_number number(7),

    flt_date date

    ) partition by range (flt_date)

    (

    partition part201105 values less than (to_date(' 2011-06-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss', 'nls_calendar=gregorian'))

    tablespace ts_mhdp_1105

    pctfree 10

    initrans 1

    maxtrans 255

    storage

    (

    initial 64k

    next 1m

    minextents 1

    maxextents unlimited

    ),

    partition part201106 values less than (to_date(' 2011-07-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss', 'nls_calendar=gregorian'))

    tablespace ts_mhdp_1106

    pctfree 10

    initrans 1

    maxtrans 255

    storage

    (

    initial 64k

    next 1m

    minextents 1

    maxextents unlimited

    ),

    partition part201107 values less than (to_date(' 2011-08-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss', 'nls_calendar=gregorian'))

    tablespace ts_mhdp_1107

    pctfree 10

    initrans 1

    maxtrans 255

    storage

    (

    initial 64k

    next 1m

    minextents 1

    maxextents unlimited

    ),

    partition partdefault values less than (to_date(' 9999-12-30 00:00:00', 'syyyy-mm-dd hh24:mi:ss', 'nls_calendar=gregorian'))

    tablespace ts_mhdp

    pctfree 10

    initrans 1

    maxtrans 255

    storage

    (

    initial 64k

    next 1m

    minextents 1

    maxextents unlimited

    )

    );

    2、創(chuàng)建全局索引

    create index index_mhdp_pk on t_mhdp(id)

    tablespace ts_index_mhdp

    pctfree 10

    initrans 2

    maxtrans 255

    storage

    (

    initial 64k

    next 1m

    minextents 1

    maxextents unlimited

    );

    3、創(chuàng)建本地索引

    create index index_mhdp_pk on t_mhdp(id) local (

    partition part201105 tablespace ts_mhdp_index_1105,

    partition part201106 tablespace ts_mhdp_index_1106,

    partition part201107 tablespace ts_mhdp_index_1107,

    partition partdefault tablespace ts_mhdp_index

    );

    更多信息請查看IT技術專欄

    更多信息請查看數(shù)據(jù)庫
    易賢網手機網站地址:oracle建分區(qū)表

    2025國考·省考課程試聽報名

    • 報班類型
    • 姓名
    • 手機號
    • 驗證碼
    關于我們 | 聯(lián)系我們 | 人才招聘 | 網站聲明 | 網站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點 | 投訴建議
    工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網安備53010202001879號 人力資源服務許可證:(云)人服證字(2023)第0102001523號
    聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關注公眾號:hfpxwx
    咨詢QQ:1093837350(9:00—18:00)版權所有:易賢網