select rowcnt from sysindexes where id = object_id('表') and indid < 2
select count(1) from 表
SQL查询总行数,如果没有where可以这样
最新推荐文章于 2023-12-16 15:41:26 发布
select rowcnt from sysindexes where id = object_id('表') and indid < 2
select count(1) from 表