Oracle,表分区
来源:互联网 发布:2011年小牛夺冠数据 编辑:程序博客网 时间:2024/06/08 12:56
Oracle表分区
一、(根据数据日期分区存储)列表分区(list)
创建新表fqtime
create table FQTIME
( id VARCHAR2(5) not null,
chn VARCHAR2(3),
atm NUMBER(20,2),
pdate VARCHAR2(8),
primary key(id)
)
partition by list (PDATE)
(
partition P_20170401 values ('20170401')
);
commit;
1)、含有分区的数据表创建成功,当要插入新的数据日期时:
alter table FQTIME add partition P_20170102 values('20170102');
commit;
insert into FQTIME(chn,atm,Pdate) values('03','400','20170102');
commit;
2)、删除某一个分区时:
alter table FQTIME drop partition P_20170103;
commit;
二、范围分区(range)
创建表scored:
create table SCORED
(
id VARCHAR2(5) not null,
name VARCHAR2(20),
sex VARCHAR2(2),
scord NUMBER(10),
primary key(id)
)
partition by range (SCORD)
(
partition SCORED_1 values less than (60),
partition SCORED_2 values less than (80),
partition SCORED_3 values less than (MAXVALUE)
);
commit;
查询语句:
select * from scored partition(SCORED_1);
- Oracle表分区、索引分区
- Oracle表分区:范围分区
- Oracle.表分区:列表分区
- Oracle.表分区:复合分区
- ORACLE表分区
- oracle大表分区
- ORACLE表分区
- Oracle表分区
- Oracle表分区
- oracle(表分区技术)
- oracle 表空间/分区
- Oracle 创建表分区
- oracle 表分区
- oracle表分区
- Oracle表分区
- Oracle表分区
- oracle 物理表 分区
- oracle表分区详解
- 关于代码布局时,声明时的weak、strong修饰符
- php中提示Fatal error: require(),“include_path=’.;c:\php5\pear’”错误的解决方法
- linux基础3.11shell脚本1
- ./tools/mkimage: invalid entry point -n
- Loadrunner编译java vuser脚本问题
- Oracle,表分区
- MySQL按照汉语拼音排序
- WEB开发中需要了解的东西
- hicharts中treemap添加超链接
- CocoaPods 删除已导入项目的第三方库和移除项目中的CocoaPods
- H264 TS/ES
- 模拟循环链表
- 错误RuntimeError: the sip module implements API v11.0 to v11.2 but the module requires API v12.0
- 题目1445:How Many Tables