1.查看SQLServer数据库中所有表的数据量
SELECT a.name,b.rows FROM sysobjects a
INNER JOIN sysindexes b ON a.id=b.id
WHERE b.indid IN(0,1) AND a.Type='u'
ORDER BY a.name;
2.查看oracle数据库中所有表的数据量
select b.table_name, b.num_rows from user_tables b;