4. mysql 查看数据库中所有表的记录数

Posted on 2017-06-21 18:57  zkx4213  阅读(150)  评论(0)    收藏  举报

use information_schema;

select table_name,table_rows from tables where TABLE_SCHEMA = 'testdb'  order by table_rows desc;

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3