select rows from sysindexes where id = object_id('Ip') and indid in (0,1)
这个方法比
SELECT COUNT(*) FROM Ip 速度要快的多的多!
select rows from sysindexes where id = object_id('Ip') and indid in (0,1)
这个方法比
SELECT COUNT(*) FROM Ip 速度要快的多的多!
转载于:https://www.cnblogs.com/solomon_Blog/archive/2011/05/16/2047906.html