例:修改表test1中的fnumber字段属性
--创建和表test1结构相同但没有数据的表test2
alter table test2 as select * from test1 where 1=2;
--修改表test2的字段属性
alter table test2 modify (fnumber varchar2(100));
--锁住表test1让其他用户暂时不能进行操作
lock table test1 in exclusive mode;
--将表test1中的数据插入test2
insert into test2 select * from test1;
--将表test1的名字修改为test3
alter table test1 rename to test3;
--将表test2的名字修改为test1
alter table test2 rename to test1;
--删除表test3
drop table test3