SqlServer快速获取表行数的方法 select rows from sysindexes where id=object_id('表名') and indid<=1 好处:快速高效,不用查询表,造成锁定