MySQL里执行SHOW INDEX结果中Cardinality的含义
摘要:
今天在写一个Perl脚本,想自动化查找出MySQL数据库中可能无效的索引,于是根据朝阳的书上提到的一些规则,我来设计了一些判断方法,其中发现某个我想要的值就是SHOW INDEX FROM table里的Cardinality,于是查了下它的含义以验证我的想法。MySQL中SHOW INDEX FROM table 会有以下结果列| Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comme 阅读全文
posted @ 2014-02-19 22:56 Still water run deep 阅读(3141) 评论(0) 推荐(0) 编辑