mysql给属性添加注释的示例:
mysql创建新表的脚本时添加。
create table test(id int not null default 0 comment '用户id'
)
如果是已经建好的表,可修改字段的命令,然后加上comment属性定义即可。
alter table testchange column id id int not null default 0 comment '测试表id'
亿速云「云数据库 MySQL」免部署即开即用,比自行安装部署数据库高出1倍以上的性能,双节点冗余防止单节点故障,数据自动定期备份随时恢复。点击查看>>
推荐阅读:mysql怎么给字段添加注释