首页 > 数据库技术 > 详细

mysql语句查询表结构信息

时间:2020-05-11 16:43:47      阅读:49      评论:0      收藏:0      [点我收藏+]
-- 所有的表
select * from infomation.schema.tables;  
-- dbname库下的表 select * from infomation.schema.tables where table_schema=dbname; -- 表名 表注释 表数据大小 索引量 select table_name, table_comment, concat(truncate(data_length/1024/1024,2),MB), concat(truncate(index_length/1024/1024,2),MB) from infomation.shcema.tables where table.schema=dbname;

 

mysql语句查询表结构信息

原文:https://www.cnblogs.com/lovelp0327/p/12869743.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!