参考5.7官方文档,在InnoDB中:
InnoDB handles SELECT COUNT(*) and SELECT COUNT(1) operations in the same way. There is no performance difference.1
翻译:InnoDB 以相同的方式处理 SELECT COUNT(*) 和 SELECT COUNT(1) 操作,性能上没有差异。
参考5.7官方文档,在InnoDB中:
InnoDB handles SELECT COUNT(*) and SELECT COUNT(1) operations in the same way. There is no performance difference.1
翻译:InnoDB 以相同的方式处理 SELECT COUNT(*) 和 SELECT COUNT(1) 操作,性能上没有差异。