SQLServer:
USE 數據庫名
SELECT a.name, b.rows
FROM sysobjects AS a INNER JOIN sysindexes AS b ON a.id = b.id
WHERE (a.type = 'u') AND (b.indid IN (0, 1))
ORDER BY b.rows DESC
Oracle:
DBA權限下可以查詢dba_tables,裏面有個num_rows列
select table_name,num_rows from dba_tables;
條件可以根據自己需要來加
不過,num_rows列並不是事實更新的,好像是1小時更新一次,查新之前最好先ANALYZE下
analyze table xxx compute statistics;