oracle建立分区表的方法
oracle建立分区表的方法
--建立散列分区表
create table t_emp(
empno int,
empname varchar2(20))
partition by hash(empno)
(partition part1 tablespace t1,
partition part2 tablespace t2);
--插入数据
insert into t_emp select empno,ename from scott.emp;
--查询各分区数据
select * from t_emp partition(part1);
select * from t_emp partition(part1);
--使表空间脱机,只能查询未脱机表空间所在分区.
alter tablespace t1 offline;
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。