您好,欢迎访问一九零五行业门户网

如何检查特定 MySQL 数据库中表的大小?

正如我们已经检查了mysql数据库的大小一样,我们也可以检查特定数据库中表的大小。可以按如下方式完成 -
mysql> select -> table_name as "table", -> round(((data_length + index_length) / 1024 / 1024), 2) as size -> from information_schema.tables -> where table_schema = "sample" -> order by size;+-------------+-------+| table | size |+-------------+-------+| employee | 0.02 || student | 0.02 || new_student | 0.02 |+-------------+-------+3 rows in set (0.00 sec)
这里的输出给出了示例数据库中三个表的大小。
以上就是如何检查特定 mysql 数据库中表的大小?的详细内容。
其它类似信息

推荐信息