mysql count(*) 会选哪一个索引?

今天在查询一个表行数的时候,发现count(1)和count(*)执行效率竟然是同样的。这跟Oracle仍是有区别的。遂查看两种方式的执行计划:html mysql> select count(1) from customer; +----------+ | count(1) | +----------+ | 150000 | +----------+ 1 row in set (0.03 s
相关文章
相关标签/搜索