SELECT
SUM( truncate((DATA_LENGTH+INDEX_LENGTH)/(1024*1024),4))
FROM
information_schema.TABLES AS t
WHERE
table_schema = '数据库'
mysql查看存储空间大小
最新推荐文章于 2024-07-10 03:37:09 发布
SELECT
SUM( truncate((DATA_LENGTH+INDEX_LENGTH)/(1024*1024),4))
FROM
information_schema.TABLES AS t
WHERE
table_schema = '数据库'