select schema_name(t.schema_id) as [Schema], t.name as [表名],i.rows as [总行数]
from sys.tables as t, sysindexes as i
where t.name like '%dbo%_CT%'and t.object_id = i.id and i.indid <=1
order by i.rows desc
SQL常用脚本查询表名行号
最新推荐文章于 2024-05-21 14:20:20 发布