时间:2024-08-21 09:02:05
MySQL字段添加注释有两种方式
答:给MySQL字段添加注释有两种方式
① 创建表的时候添加
create table student ( s_no int not null comment '学号' , s_name varchar ( 100 ) comment '姓名' ) comment = '学生'
如上面的创建表语句,字段 s_no 和 s_name 后面通过关键字 comment 来给对应的字段添加注释。
《mysql添加注释有几种方法》不代表本网站观点,如有侵权请联系我们删除
精彩推荐