mysql count(*) 會選哪一個索引?

今天在查詢一個錶行數的時候,發現count(1)和count(*)執行效率竟然是同樣的。這跟Oracle仍是有區別的。遂查看兩種方式的執行計劃:html mysql> select count(1) from customer; +----------+ | count(1) | +----------+ | 150000 | +----------+ 1 row in set (0.03 s
相關文章
相關標籤/搜索