参考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) 操作,性能上没有差异。
在MySQL的InnoDB存储引擎中,执行SELECT COUNT(*)和SELECT COUNT(1)操作具有相同的性能表现。根据5.7官方文档,这两种查询方式在处理上没有差异,因此在性能优化时无需考虑此区别。
参考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) 操作,性能上没有差异。
714

被折叠的 条评论
为什么被折叠?