SqlServler

1.查询当前数据库下 每个表的数据行数:

select a.name,MaxRows =Max(b.rows)from sys.tables a
inner join sys.partitions b
on a.object_id=b.object_id
group by a.name

原文地址:https://www.cnblogs.com/auldlangsynezh/p/11850410.html