use information_schema;select table_name,table_rows from tables where TABLE_SCHEMA = ‘testdb’ order by table_rows desc;