mysql查询哪张表数据最大

转载:https://blog.csdn.net/qq13650793239/article/details/81142134

mysql数据库中information_schema 数据库存储了数据库很多信息,可以通过查询tables表来获得所需要的表相关信息。

mysql> select table_name,table_rows from  tables order by table_rows desc limit 10;
+--------------------+------------+
| table_name         | table_rows |
+--------------------+------------+
| game_report_copy   |  399828255 |
| game_report_detail |   54565581 |
| stat_charge_num    |   19615374 |
| stat_online        |   14942555 |
| game_role_log      |   12310895 |
| stat_task_finish   |   10771985 |
| stat_online_201807 |    7759533 |
| stat_lv_offline    |    7642807 |
| stat_surface_skill |    6457797 |
| stat_online_201806 |    6027169 |
+--------------------+------------+

原文地址:https://www.cnblogs.com/shuaihan/p/9632972.html