数据量为200多万条,
运行select count(*) from tableName时用时4分多钟
确实速度是个问题,
如果建立了聚集索引的话,完全可以用这个
Select rows from sysindexes where id=object_id(N'tablename') and indid<2
数据量为200多万条,
运行select count(*) from tableName时用时4分多钟
确实速度是个问题,
如果建立了聚集索引的话,完全可以用这个
Select rows from sysindexes where id=object_id(N'tablename') and indid<2