oracle和mysql如何快速查看每个表的数据量?

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 tables
where TABLE_SCHEMA = 'test'
order by table_rows desc;

 

posted on 2018-09-13 16:32  小甜瓜安东泥  阅读(733)  评论(0编辑  收藏  举报