MySQL:count(*),count(1),count(col)效率比較

    count(1)效率高於count(*)這個理論之前就直接印在腦子裏,以前作了一個百萬數據插入MySQL的測試,想着有這麼多數據,就粗略地測試一下。html   結果:count(img) > count(del_flag) > count(name) > count(id) > count(1)=count(*) > count(status)=count(start_time) img
相關文章
相關標籤/搜索