咱们知道mysql5.6才支持部分的online ddl,可是如下三种ddl的写法是不须要拷贝表的:mysql
字段注释
alter table testtable change testcolumn testcolumn int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '修改后的字段的注释'; sql
表注释
alter table testtable comment '修改后的表的注释';ide
修改默认值
alter table testtable alter column testcolumn set default 0;it