[真伪]数据库中 select count(1) 比 select count(*) 快?
论坛上经常看到一种观点,就是 select count(1) from table1 .. 比 select count(*) from table1 .. 要快。
看看大家什么观点,
估计大家都知道 select 1 from table1 肯定比 select * from table1 要快。但这个count(1) 与 count(*) 对比是如何呢?
发个贴子大家讨论讨论。
A) count(1) 快于 count(*)
B) count(1) 慢于 count(*)
C) count(1) 速度上等同于 count(*)
D) 说不准,count(1) count(*) 哪个快不一定。