oracle组合分区_oracle数据库表分区

oracle组合分区_oracle数据库表分区由于工作原因,需要了解一下oracle分区,发现oracle11g之后分区的种类变得更多了。三种原始分区。(1)范围分区(range);(2)哈希分区(hash);(3)列表分区(list);Range分区例子:createtablepdba(idnumber,timedate)partitionbyrange(time)_oraclerange分区

oracle组合分区_oracle数据库表分区"

由于工作原因,需要了解一下oracle 分区,发现oracle 11g之后分区的种类变得更多了。

三种原始分区。

1)范围分区(range);

2)哈希分区(hash);

3)列表分区(list);


Range分区例子:

create table pdba (id number, time date) partition by range (time)

(

partition p1 values less than (to_date('2010-10-1', 'yyyy-mm-dd')),

partition p2 values less than (to_date('2010-11-1', 'yyyy-mm-dd')),

partition p3 values less than (to_date('2010-12-1', 'yyyy-mm-dd')),

partition p4 values less than (maxvalue)

)

Hash分区例子:

create table test

(

transaction_id number primary key,

item_id number(8) not null

)

partition by hash(transaction_id)

(

partition part_01 tablespace tablespace01,

partition part_02 tablespace tablespace02,

partition part_03 tablespace tablespace03

);

List分区例子:

create table custaddr
(

id varchar2(15 

今天的文章oracle组合分区_oracle数据库表分区分享到此就结束了,感谢您的阅读,如果确实帮到您,您可以动动手指转发给其他人。

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:http://bianchenghao.cn/58182.html

(0)
编程小号编程小号

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注