select rows from sysindexes where id = object_id('Ip') and indid in (0,1) 这个方法比
SELECT COUNT(*) FROM Ip 速度要快的多的多!