mysql怎么给属性添加注释

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'
声明:本站所有作品(图文、音视频)均由用户自行上传分享,或互联网相关知识整合,仅供网友学习交流,若您的权利被侵害,请联系 管理员 删除。
本文链接:http://news.ew35.com/
