create table test1 ( field_name int comment '字段的注釋' ); 修改字段的注釋
alter table test1 modify column field_name int comment '修改后的字段注釋';
-- 注意:字段名和字段類型照寫就行 查看字段注釋的方法
-- show show full columns from test1; -- 在元數據的表里面看 select * from COLUMNS where TABLE_SCHEMA='my_db' and TABLE_NAME='test1' /G 以上是“mysql如何設置字段注釋”這篇文章的所有內容,感謝各位的閱讀!