|
on commit delete/preserve rows as select * from kong.authors;
create table user.table(...) tablespace tablespace_name storage(...) pctfree10 pctused 40;
alter table user.tablename pctfree 20 pctused 50 storage(...);---changing table storage
/*手工分配分区,分配的数据文件必须是表所在表空间内的数据文件*/
alter table user.table_name allocate extent(size 500k datafile '...');
/*释放表中没有用到的空间*/
alter table table_name deallocate unused;
alter table table_name deallocate unused keep 8k;
/*将非分区表的表空间搬到新的表空间,在移动表空间后,原表中的索引对象将会不可用,必须重建*/
alter table user.table_name move tablespace new_tablespace_name;
create index index_name on user.table_name(column_name) tablespace users;
alter index index_name rebuild;
drop table table_name [CASCADE CONSTRAINTS];
alter table user.table_name drop column col_name [CASCADE CONSTRAINTS CHECKPOINT 1000];---drop column
/*给表中不用的列做标记*/
alter table user.table_name set unused column comments CASCADE CONSTRAINTS;
/*drop表中不用的做了标记列*/
alter table user.table_nam 上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >> 更多精彩:学习网->http://www.haohao888.com.cn 网络编程->http://www.51wlpc.com 电脑设备->http://www.xpmaster.cn
|