oracle partition 分区
--范围分区
create table person(
id int,
name varchar2(20),
birth date,
sex char(2)
)
partition by range (birth) --根据年龄分区
(
partition p1 values less than (to_date('19950517','yyyymmdd')),
partition p2 values less than (to_date('20000517','yyyymmdd')),
partition p3 values less than (to_date('20100517','yyyymmdd')),
partition p4 values less than (maxvalue)
);
--列表分区
create table person1(
id int,
name varchar2(20),
birth date,
sex char(2)
)
partition by list (sex) --根据性别分区
(
partition l1 values('男'),
partition l2 values('女'),
partition l3 values(default)
);
--hash分区
--不指定分区名
create table person2(
id int,
name varchar2(20),
birth date,
sex char(2)
)
partition by hash (id)
partitions 2 store in (system,users);
--指定分区名
create table person3(
id int,
name varchar2(20),
birth date,
sex char(2)
)
partition by hash (id)
(
partition h1,
partition h2,
partition h3
);
--复合分区
--范围——列表
create table person4(
id int,
name varchar2(20),
birth date,
sex char(2)
)
partition by range (birth)
subpartition by list (sex)
subpartition template(
subpartition sp1 values ('男'),
subpartition sp2 values ('女'),
subpartition sp3 values (default)
)(
partition p5 values less than (to_date(19950517,'yyyyMMdd')),
partition p6 values less than (to_date(20000517,'yyyyMMdd')),
partition p7 values less than (to_date(20100517,'yyyyMMdd')),
partition p8 values less than (maxvalue)
);
--范围——hash
create table person5(
id int,
name varchar2(20),
birth date,
sex char(2)
)
partition by range (birth)
subpartition by hash(id)
subpartition template(
subpartition sp4,
subpartition sp5,
subpartition sp6
)(
partition p9 values less than (to_date(19950517,'yyyyMMdd')),
partition p10 values less than (to_date(20000517,'yyyyMMdd')),
partition p11 values less than (to_date(20100517,'yyyyMMdd')),
partition p12 values less than (maxvalue)
);
--查询
--相关字典表:
--select * from user_objects where object_name ='表名';
--select * from user_tables where table_name = '表名';
--select * from user_tab_partitions where table_name = '表名';
--select * from user_tab_subpartitions where table_name = '表名';
--查询分区
select * from person partition (p2);
select * from person1 partition (l2);
select * from person2 partition (SYS_P548);
select * from person3 partition (h2);
select * from person4 subpartition (p7_sp2);
select * from person5 subpartition (p11_sp5);
--删除表分区
--alter table 表名 drop partition 分区名;
--创建序列
create sequence seq_partition
minvalue 1
maxvalue 500
increment by 1;
--插入数据
insert into person values (seq_partition.nextval,'吕布',to_date('19900517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'赵云',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'关羽',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'黄忠',to_date('19900517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'张辽',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'张飞',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'高顺',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'马超',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'甘宁',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'太史慈',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'孙策',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'黄盖',to_date('19900517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'典韦',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'许褚',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'周泰',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'凌统',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'郭嘉',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'贾诩',to_date('19900517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'庞统',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'周瑜',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'戏忠',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'田丰',to_date('19900517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'沮涭',to_date('19900517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'陈宫',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'诸葛亮',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'貂蝉',to_date('20000517','yyyymmdd'),'女');
insert into person values (seq_partition.nextval,'蔡琰',to_date('20000517','yyyymmdd'),'女');
insert into person values (seq_partition.nextval,'甄宓',to_date('20000517','yyyymmdd'),'女');
insert into person values (seq_partition.nextval,'孙仁',to_date('20000517','yyyymmdd'),'女');
insert into person values (seq_partition.nextval,'黄月英',to_date('20000517','yyyymmdd'),'女');
insert into person values (seq_partition.nextval,'甘倩',to_date('20000517','yyyymmdd'),'女');
insert into person values (seq_partition.nextval,'乔莹',to_date('20000517','yyyymmdd'),'女');
insert into person values (seq_partition.nextval,'乔霜',to_date('20000517','yyyymmdd'),'女');
insert into person values (seq_partition.nextval,'伏寿',to_date('20000517','yyyymmdd'),'女');
--插入数据
insert into person1 values (seq_partition.nextval,'吕布',to_date('19900517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'赵云',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'关羽',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'黄忠',to_date('19900517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'张辽',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'张飞',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'高顺',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'马超',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'甘宁',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'太史慈',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'孙策',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'黄盖',to_date('19900517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'典韦',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'许褚',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'周泰',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'凌统',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'郭嘉',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'贾诩',to_date('19900517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'庞统',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'周瑜',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'戏忠',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'田丰',to_date('19900517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'沮涭',to_date('19900517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'陈宫',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'诸葛亮',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'貂蝉',to_date('20000517','yyyymmdd'),'女');
insert into person1 values (seq_partition.nextval,'蔡琰',to_date('20000517','yyyymmdd'),'女');
insert into person1 values (seq_partition.nextval,'甄宓',to_date('20000517','yyyymmdd'),'女');
insert into person1 values (seq_partition.nextval,'孙仁',to_date('20000517','yyyymmdd'),'女');
insert into person1 values (seq_partition.nextval,'黄月英',to_date('20000517','yyyymmdd'),'女');
insert into person1 values (seq_partition.nextval,'甘倩',to_date('20000517','yyyymmdd'),'女');
insert into person1 values (seq_partition.nextval,'乔莹',to_date('20000517','yyyymmdd'),'女');
insert into person1 values (seq_partition.nextval,'乔霜',to_date('20000517','yyyymmdd'),'女');
insert into person1 values (seq_partition.nextval,'伏寿',to_date('20000517','yyyymmdd'),'女');
--插入数据
insert into person2 values (seq_partition.nextval,'吕布',to_date('19900517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'赵云',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'关羽',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'黄忠',to_date('19900517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'张辽',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'张飞',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'高顺',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'马超',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'甘宁',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'太史慈',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'孙策',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'黄盖',to_date('19900517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'典韦',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'许褚',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'周泰',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'凌统',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'郭嘉',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'贾诩',to_date('19900517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'庞统',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'周瑜',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'戏忠',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'田丰',to_date('19900517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'沮涭',to_date('19900517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'陈宫',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'诸葛亮',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'貂蝉',to_date('20000517','yyyymmdd'),'女');
insert into person2 values (seq_partition.nextval,'蔡琰',to_date('20000517','yyyymmdd'),'女');
insert into person2 values (seq_partition.nextval,'甄宓',to_date('20000517','yyyymmdd'),'女');
insert into person2 values (seq_partition.nextval,'孙仁',to_date('20000517','yyyymmdd'),'女');
insert into person2 values (seq_partition.nextval,'黄月英',to_date('20000517','yyyymmdd'),'女');
insert into person2 values (seq_partition.nextval,'甘倩',to_date('20000517','yyyymmdd'),'女');
insert into person2 values (seq_partition.nextval,'乔莹',to_date('20000517','yyyymmdd'),'女');
insert into person2 values (seq_partition.nextval,'乔霜',to_date('20000517','yyyymmdd'),'女');
insert into person2 values (seq_partition.nextval,'伏寿',to_date('20000517','yyyymmdd'),'女');
--插入数据
insert into person3 values (seq_partition.nextval,'吕布',to_date('19900517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'赵云',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'关羽',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'黄忠',to_date('19900517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'张辽',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'张飞',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'高顺',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'马超',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'甘宁',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'太史慈',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'孙策',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'黄盖',to_date('19900517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'典韦',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'许褚',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'周泰',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'凌统',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'郭嘉',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'贾诩',to_date('19900517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'庞统',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'周瑜',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'戏忠',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'田丰',to_date('19900517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'沮涭',to_date('19900517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'陈宫',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'诸葛亮',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'貂蝉',to_date('20000517','yyyymmdd'),'女');
insert into person3 values (seq_partition.nextval,'蔡琰',to_date('20000517','yyyymmdd'),'女');
insert into person3 values (seq_partition.nextval,'甄宓',to_date('20000517','yyyymmdd'),'女');
insert into person3 values (seq_partition.nextval,'孙仁',to_date('20000517','yyyymmdd'),'女');
insert into person3 values (seq_partition.nextval,'黄月英',to_date('20000517','yyyymmdd'),'女');
insert into person3 values (seq_partition.nextval,'甘倩',to_date('20000517','yyyymmdd'),'女');
insert into person3 values (seq_partition.nextval,'乔莹',to_date('20000517','yyyymmdd'),'女');
insert into person3 values (seq_partition.nextval,'乔霜',to_date('20000517','yyyymmdd'),'女');
insert into person3 values (seq_partition.nextval,'伏寿',to_date('20000517','yyyymmdd'),'女');
--插入数据
insert into person4 values (seq_partition.nextval,'吕布',to_date('19900517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'赵云',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'关羽',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'黄忠',to_date('19900517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'张辽',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'张飞',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'高顺',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'马超',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'甘宁',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'太史慈',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'孙策',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'黄盖',to_date('19900517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'典韦',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'许褚',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'周泰',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'凌统',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'郭嘉',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'贾诩',to_date('19900517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'庞统',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'周瑜',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'戏忠',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'田丰',to_date('19900517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'沮涭',to_date('19900517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'陈宫',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'诸葛亮',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'貂蝉',to_date('20000517','yyyymmdd'),'女');
insert into person4 values (seq_partition.nextval,'蔡琰',to_date('20000517','yyyymmdd'),'女');
insert into person4 values (seq_partition.nextval,'甄宓',to_date('20000517','yyyymmdd'),'女');
insert into person4 values (seq_partition.nextval,'孙仁',to_date('20000517','yyyymmdd'),'女');
insert into person4 values (seq_partition.nextval,'黄月英',to_date('20000517','yyyymmdd'),'女');
insert into person4 values (seq_partition.nextval,'甘倩',to_date('20000517','yyyymmdd'),'女');
insert into person4 values (seq_partition.nextval,'乔莹',to_date('20000517','yyyymmdd'),'女');
insert into person4 values (seq_partition.nextval,'乔霜',to_date('20000517','yyyymmdd'),'女');
insert into person4 values (seq_partition.nextval,'伏寿',to_date('20000517','yyyymmdd'),'女');
--插入数据
insert into person5 values (seq_partition.nextval,'吕布',to_date('19900517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'赵云',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'关羽',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'黄忠',to_date('19900517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'张辽',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'张飞',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'高顺',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'马超',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'甘宁',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'太史慈',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'孙策',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'黄盖',to_date('19900517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'典韦',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'许褚',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'周泰',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'凌统',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'郭嘉',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'贾诩',to_date('19900517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'庞统',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'周瑜',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'戏忠',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'田丰',to_date('19900517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'沮涭',to_date('19900517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'陈宫',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'诸葛亮',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'貂蝉',to_date('20000517','yyyymmdd'),'女');
insert into person5 values (seq_partition.nextval,'蔡琰',to_date('20000517','yyyymmdd'),'女');
insert into person5 values (seq_partition.nextval,'甄宓',to_date('20000517','yyyymmdd'),'女');
insert into person5 values (seq_partition.nextval,'孙仁',to_date('20000517','yyyymmdd'),'女');
insert into person5 values (seq_partition.nextval,'黄月英',to_date('20000517','yyyymmdd'),'女');
insert into person5 values (seq_partition.nextval,'甘倩',to_date('20000517','yyyymmdd'),'女');
insert into person5 values (seq_partition.nextval,'乔莹',to_date('20000517','yyyymmdd'),'女');
insert into person5 values (seq_partition.nextval,'乔霜',to_date('20000517','yyyymmdd'),'女');
insert into person5 values (seq_partition.nextval,'伏寿',to_date('20000517','yyyymmdd'),'女');
oracle partition 分区的更多相关文章
- Oracle Partition 分区详细总结
此文从以下几个方面来整理关于分区表的概念及操作: 1.表空间及分区表的概念 2.表分区的具体作用 3.表分区的优缺点 4.表分区的几种类型及操作 ...
- Oracle子分区(sub partition)操作
要重新定义大量分区表. 首先看 SQL Reference 大致了解了 Oracle 的分区修改操作.Alter table 语句的alter_table_partitioning 子句可以分为以下几 ...
- Oracle 表分区partition(http://love-flying-snow.iteye.com/blog/573303)
http://www.jb51.net/article/44959.htm Oracle表分区分为四种:范围分区,散列分区,列表分区和复合分区. 一:范围分区 就是根据数据库表中某一字段的值的范围来划 ...
- oracle表分区详解
原文来自:http://www.cnblogs.com/leiOOlei/archive/2012/06/08/2541306.html oracle表分区详解 从以下几个方面来整理关于分区表的概念及 ...
- 转:Oracle表分区
Oracle表分区分为四种:范围分区,散列分区,列表分区和复合分区. 一:范围分区 就是根据数据库表中某一字段的值的范围来划分分区,例如: 1. create table graderecord 2. ...
- Oracle表分区[转]
废话少说,直接讲分区语法. Oracle表分区分为四种:范围分区,散列分区,列表分区和复合分区. 一:范围分区 就是根据数据库表中某一字段的值的范围来划分分区,例如: create table gra ...
- 详解Oracle partition分区表
随着表中行数的增多,管理和性能性能影响也将随之增加.备份将要花费更多时间,恢复也将 要花费更说的时间,对整个数据表的查询也将花费更多时间.通过把一个表中的行分为几个部分,可以减少大型表的管理和性能问题 ...
- oracle表分区的,分区操作,分区查询,子分区查询
一.摘要 有关表分区的一些维护性操作: 注:分区根据具体情况选择. 表分区有以下优点: 1.数据查询:数据被存储到多个文件上,减少了I/O负载,查询速度提高. 2.数据修剪:保存历史数据非常的理想. ...
- oracle partition table 分区表详解
Oracle partition table 分区表详解 分区表就是通过使用分区技术,将一张大表,拆分成多个表分区(独立的segment),从而提升数据访问的性能,以及日常的可维护性.分区表中,每个分 ...
随机推荐
- robotFramework——FOR循环语句
robotframework支持FOR循环语句,语法和Python的语法基本相同,但robotframework中,“FOR”关键字前面需要增加一个“:”,写成“:FOR”,其它与Python的语法相 ...
- python学习笔记:(九)循环(for和while)
在python中循环包括for和while 1.while循环 while 判断条件: statements ----表示:判断条件为真时执行statements,为假不执行 2.for语句 for ...
- Oracle 笔记(四)
PLSQL编程[语法.plsql控制语句.异常.游标.触发器.存储过程] 1. PLSQL的语法–块编程 a) 概念:procedural language s ...
- js移动端滑动效果
移动端触屏滑动的效果其实就是图片轮播,在PC的页面上很好实现,绑定click和mouseover等事件来完成.但是在移动设备上,要实现这种轮播的效果,就需要用到核心的touch事件.处理touch事件 ...
- [IJCAI-17 口碑商家客流量预测]
IJCAI-17 口碑商家客流量预测 第 1 赛季截止日期 2017/03/14 赛制介绍 重要时间2月8日 08:00: 评测启动3月7日 10:00: 报 ...
- 模版include的用法
from flask import Flask,render_template app = Flask(__name__) @app.route('/') def hello_world(): ret ...
- Virtual DOM和snabbdom.js
Virtual DOM和snabbdom.js:https://www.jianshu.com/p/1f1ef915e83e
- 详解Vue 如何监听Array的变化
详解Vue 如何监听Array的变化:https://www.jb51.net/article/162584.htm
- Mybatis 1.原理流程图
仅用来做个人笔记记录. 总流程: 根据配置文件(全局配置文件和sql映射文件)初始化configuration对象. 创建一个defaultSqlSession对象,包含Configuration及E ...
- 洛谷 P1197 星球大战 题解
题面 并查集处理问题的基本思路:如果不是强制在线那么可以倒着处理,把删边改为可爱的加边,然后使用并查集来判断是否联通: 所以可以较为轻松的写出AC代码: #include <bits/stdc+ ...