修改大表结构注意事项

alter table table1 add (F1 CHAR(1) default 'O');   -- 如果是大表, 很耗时, 会将之前的数据此字段全部赋值 
==>
alter table table1 add (F1 CHAR(1)); 
alter table table1 modify F1 default 'O';
posted on 2013-03-12 17:03  思静  阅读(199)  评论(0编辑  收藏  举报