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

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

可应用 Navicat 版本编号:全部

 

MySQL & MariaDB

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

这是一个 MySQL InnoDB 表的属性,关于这个问题请参阅 MySQL 文件:

https://dev.mysql.com/doc/refman/8.0/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" 值,但不是精确的。

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