select
TABLE_SCHEMA,
TABLE_NAME,
PARTITION_NAME,
TABLE_ROWS, (DATA_LENGTH + INDEX_LENGTH)/1024/1024/1024 as gb
from information_schema.partitions
where TABLE_SCHEMA = database() and TABLE_ROWS > 0
order by DATA_LENGTH + INDEX_LENGTH desc;
More than 1 year has passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme