MySQL 批量给已经存在的表的字段增加注释

当一个表有几百个字段时,需要给这几百个字段增加注释,可以这样

alter table 表名 modify column 字段名 decimal(15,3) comment '注释';
alter table 表名 modify column 字段名 decimal(15,3) comment '注释';
........

 

posted on 2023-01-29 16:58  小小喽啰  阅读(435)  评论(0编辑  收藏  举报