mysql中的 COMMENT 有什么作用啊

字段的注释信息。use test;show tables;create table if not exists test_user(id int auto_increment primary key comment 'primay key',username varchar(50) not null,age smallint not null comment '年龄') engine=InnoDB default charset=utf8;show full columns from test_user;...
mysql中的 COMMENT 有什么作用啊
字段的注释信息。

use test;show tables;create table if not exists test_user(id int auto_increment primary key comment 'primay key',username varchar(50) not null,age smallint not null comment '年龄') engine=InnoDB default charset=utf8;show full columns from test_user;2017-07-12
用来给字段或者表写备注2017-07-12
mengvlog 阅读 8 次 更新于 2025-07-19 12:55:18 我来答关注问题0
檬味博客在线解答立即免费咨询

mySQL相关话题

Copyright © 2023 WWW.MENGVLOG.COM - 檬味博客
返回顶部