您好,欢迎访问一九零五行业门户网

mysql查看所有表的记录数_MySQL

bitscn.com
mysql查看所有表的记录数 记录一下mysql中查看所有表的记录数:  table_schema : 数据库名 table_name:表名  engine:所使用的存储引擎 tables_rows:记录数  data_length:数据大小  得到的结果是以字节为单位,除1024为k,除1048576(=1024*1024)为m index_length:索引大小    use information_schema;  select table_schema,table_name,table_rows from tables order by table_rows desc;  查看指定数据库大小: select sum(data_length)+sum(index_length) from information_schema.tables where  table_schema='数据库名'; 得到的结果是以字节为单位,除1024为k,除1048576(=1024*1024)为m bitscn.com
其它类似信息

推荐信息