-- Create table
create table T_LOG_MATCHLOG
(
ID VARCHAR2(255),
APPNUM VARCHAR2(255),
PHONE VARCHAR2(255),
TEL VARCHAR2(255),
PROVINCE VARCHAR2(255),
CITY VARCHAR2(255),
COUNTY VARCHAR2(255),
ADDRESS VARCHAR2(255),
CREATE_DATE TIMESTAMP(6),
MATCHTYPE NUMBER,
MATCHCODE VARCHAR2(255),
MODIFY_DATE TIMESTAMP(6),
MODIFY_USER VARCHAR2(255),
CREATE_USER VARCHAR2(255),
ACTIVE CHAR(1),
LNG VARCHAR2(255),
LAT VARCHAR2(255),
MATCHLEVEL NUMBER,
MATCHMODE VARCHAR2(255)
)
partition by range(CREATE_DATE)
interval (NUMTOYMINTERVAL(1,'MONTH'))
(PARTITION partition_one VALUES LESS THAN (TIMESTAMP' 2014-2-1 00:00:00'))
------local分区索引的建立
CREATE INDEX INX_TAB_T_LOG_MATCHLOG ON T_LOG_MATCHLOG(CREATE_DATE) LOCAL;
create table T_LOG_MATCHLOG
(
ID VARCHAR2(255),
APPNUM VARCHAR2(255),
PHONE VARCHAR2(255),
TEL VARCHAR2(255),
PROVINCE VARCHAR2(255),
CITY VARCHAR2(255),
COUNTY VARCHAR2(255),
ADDRESS VARCHAR2(255),
CREATE_DATE TIMESTAMP(6),
MATCHTYPE NUMBER,
MATCHCODE VARCHAR2(255),
MODIFY_DATE TIMESTAMP(6),
MODIFY_USER VARCHAR2(255),
CREATE_USER VARCHAR2(255),
ACTIVE CHAR(1),
LNG VARCHAR2(255),
LAT VARCHAR2(255),
MATCHLEVEL NUMBER,
MATCHMODE VARCHAR2(255)
)
partition by range(CREATE_DATE)
interval (NUMTOYMINTERVAL(1,'MONTH'))
(PARTITION partition_one VALUES LESS THAN (TIMESTAMP' 2014-2-1 00:00:00'))
------local分区索引的建立
CREATE INDEX INX_TAB_T_LOG_MATCHLOG ON T_LOG_MATCHLOG(CREATE_DATE) LOCAL;