5154

Good Luck To You!

如何通过SQL查询获取数据库表的大小?

SELECT table_name, ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS size_mb FROM information_schema.tables WHERE table_schema = 'your_database_name' GROUP BY table_name;
<< 1 >>

Powered By Z-BlogPHP 1.7.3

Copyright Your WebSite.Some Rights Reserved.