schema_redundant_indexes 視圖顯示重複其他索引或因其他索引而變得多餘的索引。x$schema_flattened_keys 視圖是 schema_redundant_indexes 的輔助視圖。
在以下欄位描述中,主導索引是指使多餘索引變得多餘的索引。
schema_redundant_indexes 視圖具有以下欄位:
table_schema包含表格的 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包含表格的 schema。
table_name包含索引的表格。
index_name索引名稱。
non_unique索引中非唯一欄位的數量。
subpart_exists索引是否僅索引欄位的一部分。
index_columns索引中欄位的名稱。