当前位置:操作系统 > Unix/Linux >>

alter table开并行操作

alter table开并行操作
 
使用alter table 开并行 
先创建个表 
create table a_test 
name varchar2(10) 
 
insert into a_test values('aaa'); 
 
select * from a_test; 
 
NAME 
---- 
aaa 
 
添加一个年龄然后使用并行 
alter table a_test parallel 6 add age number(10) default 18; 
 
select * from a_test; 
NAME AGE 
---- --- 
aaa  18 
查看并行力度 
select table_name ,degree from dba_tables where table_name = 'A_TEST'; 
TABLE_NAME    DEGREE 
----------    ------ 
A_TEST          6 
最后别忘了关并行哦。 
alter table A_TEST noparallel; 
 
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,