设为首页 加入收藏

TOP

oracle建立分区表的方法
2014-11-24 07:36:37 来源: 作者: 【 】 浏览:2
Tags: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;
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Oracle性能分析4:数据访问方法之.. 下一篇逻辑standby建立步骤

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·C++ Lambda表达式保 (2025-12-26 05:49:45)
·C++ Lambda表达式的 (2025-12-26 05:49:42)
·深入浅出 C++ Lambda (2025-12-26 05:49:40)
·C语言指针从入门到基 (2025-12-26 05:21:36)
·【C语言指针初阶】C (2025-12-26 05:21:33)