oracle:
select t.table_name,t.num_rows from user_tables t ORDER BY NUM_ROWS DESC;
mysql:
use information_schema;select table_name,table_rows from tableswhere TABLE_SCHEMA = 'test'order by table_rows desc;