欢迎投稿

今日深度:

oracle建立分区表的方法

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;

www.htsjk.Com true http://www.htsjk.com/oracle/21787.html NewsArticle oracle建立分区表的方法 oracle建立分区表的方法 --建立散列分区表 create table t_emp( empno int, empname varchar2(20)) partition by hash(empno) (partition part1 tablespace t1, partition part2 tablespace t2); --插入数据...
相关文章
    暂无相关文章
评论暂时关闭