mysql查詢哪張表資料最大
阿新 • • 發佈:2018-12-08
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 |
+--------------------+------------+