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

来源:互联网 发布:windows photo viewer 编辑:程序博客网 时间:2024/05/18 11:05
  1. use information_schema;

  2. select table_name,table_rows from tables 
  3. where TABLE_SCHEMA = 'testdb' 
  4. order by table_rows desc;