mysql添加备注信息的实现

前言

这连天有人问我一些mysql的备注信息,不得已还是写一遍博客吧

1、创建表的时候,添加表名备注和字段备注

create table `healerjean_comment` (
 `id` bigint(20) not null auto_increment,
 `name` varchar(32) not null comment '名字备注',
 `email` varchar(64) not null,
 `message` text ,
 primary key (`id`),
 key `index_name` (`name`)
) comment='表名备注' ;

2、表创建完成添加表名备注和字段备注

alter table healerjean_comment comment='测试索引表';
alter table healerjean_comment modify name varchar(32) not null comment '名字备注'

3、查看备注信息

show create table healerjean;

show full columns from healerjean;

到此这篇关于mysql添加备注信息的实现的文章就介绍到这了,更多相关mysql添加备注信息内容请搜索www.887551.com以前的文章或继续浏览下面的相关文章希望大家以后多多支持www.887551.com!

(0)
上一篇 2022年3月21日
下一篇 2022年3月21日

相关推荐