SQL2005 300萬條記錄 count(*) 和 count(字段名)比較

300萬條記錄 count(*) 和 count(字段名)比較 環境:sql2005 數據量:300萬 機器環境 P4 3.0雙核 1G內存 1. 執行語句 select count(*) from testing select count(id) from testing select count(name) from testing 2. 沒有 索引的情況下 傳說中的count(1)性能最差這
相關文章
相關標籤/搜索