prompt --
-- H_XXX_XXX_XXX_H 按日分区的表
-- TBS_XXXX 表空间
create table H_XXX_XXX_XXX_H(
sno number(22) not null,sname varchar2(32) not null,etl_dt date not null
)
-- compress for query high
partition by range(etl_dt)
interval (numtodsinterval(1,'day')) store in (TBS_XXXX)
(partition p_init values less than (to_date('2000-01-01')) tablespace TBS_XXXX);
alter table H_XXX_XXX_XXX_H add constraint PK_H_XXX_XXX_XXX_H primary key (etl,sno)
using index local tablespace TBS_XXXX;
comment on table H_XXX_XXX_XXX_H is '按日时间分区表'
comment on column H_XXX_XXX_XXX_H.sno is '主键'
总结
如果觉得编程之家网站内容还不错,欢迎将编程之家网站推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。