How do I query the footprint of the mysql table?
How do I query the footprint of the mysql table? I believe that many novice rookies have not yet learned this skill. Through the summary of this article, I hope you can learn to query the space occupied by mysql tables. The following information is about the syntax steps of the mysql query.
Select
Table_schema as' database'
Table_name as' table name'
Table_rows as' number of records'
Truncate (data_length/1024/1024, 2) as' data capacity (MB)'
Truncate (index_length/1024/1024, 2) as' Index capacity (MB)'
From information_schema.tables
Where table_schema='database'
Order by data_length desc, index_length desc
After reading the above, have you mastered the method of querying the occupied space of the mysql table? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!