1 select count(1) from table
2 select count(*) from table
3
4 select count(name) from table //name為索引
5 select count(name) from table //name不是索引
以上4條語句,我去看了下執行計劃,生產的計劃都是一樣的。
曾經看到有大神的文章說 1的速度最快...........................
求教育(熱情恭候dudu大師給鏈接或者解釋).................
有關查詢表中數據數目的問題
瀟湘沐
2018-12-07 13:12:08