CREATE TABLE binhtv.table1
(
ACTION_AUDIT_ID NUMBER(20),
ISSUE_DATETIME DATE,
SUB_ID NUMBER(20),
ACTION_ID VARCHAR2(2 BYTE),
USER_NAME VARCHAR2(50 BYTE),
PC VARCHAR2(20 BYTE),
REASON_ID NUMBER(10),
DESCRIPTION VARCHAR2(4000 BYTE),
FILE_ID NUMBER(20),
STATUS NUMBER(1) DEFAULT 0,
FREE_SIM VARCHAR2(1 BYTE),
EMP_CODE VARCHAR2(15 BYTE),
VALID VARCHAR2(1 BYTE)
)
TABLESPACE DATA
PARTITION BY RANGE (ISSUE_DATETIME)
(
PARTITION DATA20017 VALUES LESS THAN (TO_DATE(' 2018-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLESPACE DATA2017,
PARTITION DATA2018 VALUES LESS THAN (TO_DATE(' 20019-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLESPACE DATA2018)