天天看點

SQL查詢優化小技巧

使用 :SELECT rows FROM sysindexes WHERE id = OBJECT_ID(' 表名') AND indid < 2  

代替:Select Count(*) From Table