create table CH_SRV_FEEDBACK
(
SURVEYID VARCHAR(32) not null,
ITEMID VARCHAR(32) not null,
OPERID VARCHAR(32) not null,
OPTIONID VARCHAR(2) default '0' not null,
REGION int8 not null,
ANSWER VARCHAR(1024),
CREATETIME DATE not null
) partition by list (REGION);
create table PART_310 partition of CH_SRV_FEEDBACK for values in (310) partition by range (CREATETIME);
create table PART_311 partition of CH_SRV_FEEDBACK for values in (311) partition by range (CREATETIME);
create table PART_312 partition of CH_SRV_FEEDBACK for values in (312) partition by range (CREATETIME);
create table PART_313 partition of CH_SRV_FEEDBACK for values in (313) partition by range (CREATETIME);
create table PART_314 partition of CH_SRV_FEEDBACK for values in (314) partition by range (CREATETIME);
create table PART_315 partition of CH_SRV_FEEDBACK for values in (315) partition by range (CREATETIME);
create table PART_316 partition of CH_SRV_FEEDBACK for values in (316) partition by range (CREATETIME);
create table PART_317 partition of CH_SRV_FEEDBACK for values in (317) partition by range (CREATETIME);
create table PART_318 partition of CH_SRV_FEEDBACK for values in (318) partition by range (CREATETIME);
create table PART_319 partition of CH_SRV_FEEDBACK for values in (319) partition by range (CREATETIME);
create table PART_310_202001 partition of PART_310 for values from ('2020-01-01') to ('2020-02-01');
create table PART_310_202002 partition of PART_310 for values from ('2020-02-01') to ('2020-03-01');
create table PART_310_202003 partition of PART_310 for values from ('2020-03-01') to ('2020-04-01');
create table PART_310_202004 partition of PART_310 for values from ('2020-04-01') to ('2020-05-01');
create table PART_310_202005 partition of PART_310 for values from ('2020-05-01') to ('2020-06-01');
create table PART_310_202006 partition of PART_310 for values from ('2020-06-01') to ('2020-07-01');
create table PART_310_202007 partition of PART_310 for values from ('2020-07-01') to ('2020-08-01');
create table PART_310_202008 partition of PART_310 for values from ('2020-08-01') to ('2020-09-01');
create table PART_310_202009 partition of PART_310 for values from ('2020-09-01') to ('2020-10-01');
create table PART_310_202010 partition of PART_310 for values from ('2020-10-01') to ('2020-11-01');
create table PART_310_202011 partition of PART_310 for values from ('2020-11-01') to ('2020-12-01');
create table PART_310_202012 partition of PART_310 for values from ('2020-12-01') to ('2021-01-01');
复制