SELECT table_schema 'DataBaseName', ROUND( SUM( data_length + index_length ) / 1024 / 1024 / 1024,2 ) '数据库大小(GB)' FROM information_schema.TABLES GROUP BY table_schema; |
Mysql 查看数据库大小并保持小数点两位
阅读 14
2023-08-11
SELECT table_schema 'DataBaseName', ROUND( SUM( data_length + index_length ) / 1024 / 1024 / 1024,2 ) '数据库大小(GB)' FROM information_schema.TABLES GROUP BY table_schema; |
相关推荐
精彩评论(0)