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;