SELECT table_name AS "Tables",
ROUND(((data_length + index_length) / 1024 / 1024), 2) "Size in MB"
FROM information_schema.TABLES
WHERE table_schema = "databasename"
ORDER BY (data_length + index_length) DESC;
ROUND(((data_length + index_length) / 1024 / 1024), 2) "Size in MB"
FROM information_schema.TABLES
WHERE table_schema = "databasename"
ORDER BY (data_length + index_length) DESC;
Comments
Post a Comment