为什么我每次刷新表主视图,显示的行数都会更改?

可应用操作系统:Windows、macOS、Linux

可应用 Navicat 产品:Navicat for MySQL、Navicat for PostgreSQL、Navicat for MariaDB、Navicat Premium

可应用 Navicat 版本编号:全部



MySQL & MariaDB

在表主视图,如果你选择详细信息视图,显示的行数,只是一个估计的记录数,但不是精确的。

这是一个 MySQL InnoDB 表的属性,关于这个问题请参阅 MySQL 文件: http://dev.mysql.com/doc/refman/5.1/en/show-table-status.html

"Rows --

The number of rows. Some storage engines, such as MyISAM and ISAM, store the exact count.

For other storage engines, such as InnoDB, this value is an approximation, and may vary from the actual value by as much as 40 to 50%. In such cases, use SELECT COUNT(*) to obtain an accurate count."



PostgreSQL

行列只是一个估计值,反映了 pg_class 表的 "reltuples" 值,但不是精确的。

相关文章

还有其他问题吗?
提交查询