create table test1
(
field_name int comment '字段的注释'
)comment='表的注释'
$ sed "s/comment.\'.*\'//" create_table.sql
create table test1
(
field_name int
)
select * from information_schema.TABLES里面有个TABLE_COMMENT,就是表的注释,想批量修改直接update这个表的这个字段;
同理,字段的注释在information_schema.COLUMNS这个表中。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)