mysql索引基数

标签 mysql

我有 x 行计数,但所有索引基数都比 x 大得多,这怎么可能?如果我理解正确,索引基数是该索引的唯一行数。

最佳答案

来自 SHOW INDEX :

Cardinality
An estimate of the number of unique values in the index. This is updated by running ANALYZE TABLE or myisamchk -a. Cardinality is counted based on statistics stored as integers, so the value is not necessarily exact even for small tables.

关于mysql索引基数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3337625/

相关文章:

mysql - AWS DMS 无法将 SSL 要求模式用于 MySQL

mysql - MySQL 中何时使用单引号、双引号和反引号

php - 如何从数据库中获取 php session 的用户类型

javascript - Nodejs 休息服务

php - 根据 MySQL 数据库中的值显示图像

mysql - 终端mysql查询

mysql - 表数据导入向导 'Could not determine delimiter'

mysql - 从文件读入变量 - Bash Script take2

java - 用 Java 编写数据库迁移器,内存问题(代码结构?)

php - 部分保存表格并稍后继续