码迷,mamicode.com
首页 > 数据库 > 详细

Oracle 创建表分区

时间:2017-09-08 13:35:27      阅读:252      评论:0      收藏:0      [点我收藏+]

标签:tab   数据   ace   ctf   rtti   date   mit   创建   tran   

create table TableName1
(
id CHAR(36) not null,
samplingdate TIMESTAMP(6) not null,
instantaneousflow NUMBER(10,3),
totalflow NUMBER(10),
flowmeterid CHAR(36) not null,
receivetime TIMESTAMP(6),
inserttime TIMESTAMP(6)
);
partition by range (SAMPLINGDATE)
INTERVAL ( NUMTOYMINTERVAL (1, ‘YEAR‘) ) --Oracle 11g支持 , Oracle会根据数据自动按照年份创建分区
(
partition P2012 values less than (TIMESTAMP‘ 2012-01-01 00:00:00‘)
tablespace WIMS
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 64K
next 1M
minextents 1
maxextents unlimited
)
);

Oracle 创建表分区

标签:tab   数据   ace   ctf   rtti   date   mit   创建   tran   

原文地址:http://www.cnblogs.com/li-sx/p/7493696.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!