sql - PHPMyAdmin - 总记录数各不相同

标签 sql count phpmyadmin

我正在使用 phpmyadmin 对记录表运行请求,结果计数有所不同。例如,显示结果时显示“显示记录 1 - (~180,234 )”。
每次刷新时此数字都会更改,并且不会添加或删除任何数据。
当我对记录执行 SQL 请求时,结果保持不变。这是 phpMyAdmin 的问题吗?

最佳答案

对于 InnoDB 表,来自 phpMyAdmin 的常见问题解答:

phpMyAdmin uses a quick method to get the row count, and this method only returns an approximate count in the case of InnoDB tables. See $cfg['MaxExactCount'] for a way to modify those results, but this could have a serious impact on performance.

http://docs.phpmyadmin.net/en/latest/config.html?highlight=maxexactcount#cfg_MaxExactCount

关于sql - PHPMyAdmin - 总记录数各不相同,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59237971/

相关文章:

mysql - 从三个简单查询创建复杂查询

Laravel 计数多级 groupBy

php - 用 PHP 编写的简单/快速的文件上传脚本是什么?

mysql - phpMyAdmin 错误代码 403

php - MySQL:如何允许 CHAR 行重复?

Mysql插入外键

mysql - 根据相关表中的最大值更新记录

php - SQL从数组中选择IN子句?

mysql - 获取 mysql 中不同重复 ID 的计数

php - 在使用 "take"和 "skip"之前获取 Laravel Eloquent 行数