schema_redundant_indexes和x $ schema_flattened_keys视图
该schema_redundant_indexes视图显示的索引与其他索引重复或被其他索引冗余。该x$schema_flattened_keys视图是的辅助视图schema_redundant_indexes。
在下面的列描述中,主要索引是使冗余索引成为冗余索引的索引。
该schema_redundant_indexes视图包含以下列:
table_schema包含表的架构。
table_name包含索引的表。
redundant_index_name冗余索引的名称。
redundant_index_columns冗余索引中的列名称。
redundant_index_non_unique冗余索引中非唯一列的数量。
dominant_index_name主导索引的名称。
dominant_index_columns优势索引中的列名。
dominant_index_non_unique主索引中非唯一列的数量。
subpart_exists索引是否仅索引列的一部分。
sql_drop_index要删除冗余索引的语句。
该x$schema_flattened_keys视图包含以下列:
table_schema包含表的架构。
table_name包含索引的表。
index_name索引名称。
non_unique索引中非唯一列的数量。
subpart_exists索引是否仅索引列的一部分。
index_columns索引中的列名。
