首页 > IT职业 > IT图书 > mysql如何查看表注释

具体方法:
(推荐教程:mysql数据库学习教程)
创建表的时候写注释
create table test1 ( field_name int comment '字段的注释' )comment='表的注释';
修改表的注释
alter table test1 comment '修改后的表的注释';
查看表注释的方法
--在生成的SQL语句中看 show create table test1; --在元数据的表里面看 use information_schema; select * from TABLES where TABLE_SCHEMA='my_db' and TABLE_NAME='test1' G
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/1696/viewspace-2832617/ ,如需转载,请注明出处,否则将追究法律责任。