mysql中的行解释比实际行少
有一个带有列的索引,其名称为mysql中的行解释比实际行少,mysql,Mysql,有一个带有列的索引,其名称为my_index create index my_index on table(column ); 实行: select count(*) from table as b where b.column is not null; = 31517 第行解释: select count(*) from table as b where b.column is not null; 身份证件 选择类型 桌子 分割 类型 可能的\u键 钥匙 基伦 裁判 排 过滤 额
my_index
create index my_index
on table(column );
实行:
select count(*) from table as b where b.column is not null;
= 31517
第行解释:
select count(*) from table as b where b.column is not null;
身份证件
选择类型
桌子
分割
类型
可能的\u键
钥匙
基伦
裁判
排
过滤
额外的
1.
简单的
B
范围
my_索引
my_索引
99
24294
100
在何处使用;使用索引
解释中显示的行数为近似值。更新表统计以获得更精确的值。@Akina抱歉,我已编辑了说明。请提供
my_index
定义。@Akina我已更新了说明。它是列的单个索引
看起来该索引不是用作索引,而是用作表的压缩版本,并通过该索引执行fullscan。该索引是否仅用于此查询,或者有许多查询是按确定值列表或范围选择的?