- 最后登录
- 2013-8-30
- 在线时间
- 51 小时
- 威望
- 0
- 金钱
- 266
- 注册时间
- 2013-1-16
- 阅读权限
- 10
- 帖子
- 8
- 精华
- 0
- 积分
- 0
- UID
- 869
|
8#
发表于 2013-4-5 12:18:18
建表语句:
create table T_INFO_ACCOUNT_P
(
ACCOUNT_NO VARCHAR2(20) not null,
ACCOUNT_NAME VARCHAR2(40 CHAR),
CUSTOMER_NO VARCHAR2(16),
OPEN_DATE DATE,
CLOSE_DATE DATE,
VALID_DATE DATE,
STATUS CHAR(1),
COMM_STATUS CHAR(1),
TYPE CHAR(1),
GRADE CHAR(1),
IS_REALNAME CHAR(1),
APANAGE VARCHAR2(15) not null,
UNIT_ID VARCHAR2(30),
AREA_CODE VARCHAR2(6),
CITY_CODE VARCHAR2(10),
FORBIDDEN_TXN VARCHAR2(2000),
)
partition by list (area_code)
(
partition part_01 values ('330000') tablespace TBS_CUSTOMER_ACCOUNT_DATA01,
partition part_02 values ('320000') tablespace TBS_CUSTOMER_ACCOUNT_DATA02,
partition part_03 values ('340000') tablespace TBS_CUSTOMER_ACCOUNT_DATA03,
partition part_04 values ('440000') tablespace TBS_CUSTOMER_ACCOUNT_DATA04,
partition part_05 values ('350000') tablespace TBS_CUSTOMER_ACCOUNT_DATA01,
partition part_06 values ('510000') tablespace TBS_CUSTOMER_ACCOUNT_DATA02,
partition part_07 values ('430000') tablespace TBS_CUSTOMER_ACCOUNT_DATA03,
partition part_08 values ('360000') tablespace TBS_CUSTOMER_ACCOUNT_DATA04,
partition part_09 values ('150000') tablespace TBS_CUSTOMER_ACCOUNT_DATA01,
partition part_10 values ('460000') tablespace TBS_CUSTOMER_ACCOUNT_DATA02,
partition part_11 values ('610000') tablespace TBS_CUSTOMER_ACCOUNT_DATA03,
partition part_12 values ('650000') tablespace TBS_CUSTOMER_ACCOUNT_DATA04,
partition part_13 values ('210000') tablespace TBS_CUSTOMER_ACCOUNT_DATA01,
partition part_14 values ('110000') tablespace TBS_CUSTOMER_ACCOUNT_DATA02,
partition part_15 values ('530000') tablespace TBS_CUSTOMER_ACCOUNT_DATA03,
partition part_16 values ('620000') tablespace TBS_CUSTOMER_ACCOUNT_DATA04,
partition part_17 values ('420000') tablespace TBS_CUSTOMER_ACCOUNT_DATA01,
partition part_18 values ('640000') tablespace TBS_CUSTOMER_ACCOUNT_DATA02,
partition part_19 values ('130000') tablespace TBS_CUSTOMER_ACCOUNT_DATA03,
partition part_20 values ('140000') tablespace TBS_CUSTOMER_ACCOUNT_DATA04,
partition part_21 values ('540000') tablespace TBS_CUSTOMER_ACCOUNT_DATA01,
partition part_22 values ('410000') tablespace TBS_CUSTOMER_ACCOUNT_DATA02,
partition part_23 values ('370000') tablespace TBS_CUSTOMER_ACCOUNT_DATA03,
partition part_24 values ('220000') tablespace TBS_CUSTOMER_ACCOUNT_DATA04,
partition part_25 values ('630000') tablespace TBS_CUSTOMER_ACCOUNT_DATA01,
partition part_26 values ('230000') tablespace TBS_CUSTOMER_ACCOUNT_DATA02,
partition part_27 values ('120000') tablespace TBS_CUSTOMER_ACCOUNT_DATA03,
partition part_28 values ('520000') tablespace TBS_CUSTOMER_ACCOUNT_DATA04,
partition part_29 values ('450000') tablespace TBS_CUSTOMER_ACCOUNT_DATA01,
partition part_30 values ('310000') tablespace TBS_CUSTOMER_ACCOUNT_DATA02,
partition part_31 values ('500000') tablespace TBS_CUSTOMER_ACCOUNT_DATA03,
partition other VALUES (DEFAULT) tablespace TBS_CUSTOMER_ACCOUNT_DATA04
);
|
|