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
索引中欄位的名稱。