mysql 查看库表数量,库空间大小
作者:互联网
select
count(TABLE_NAME),
concat(truncate(data_length/1024/1024,2),' MB') as data_size,
concat(truncate(index_length/1024/1024,2),' MB') as index_size
from information_schema.tables where TABLE_SCHEMA = 'TestDB'
标签:1024,truncate,查看,index,库表,mysql,TABLE,data,size 来源: https://www.cnblogs.com/lhn9527/p/16363234.html