最近在對sql進行性能優化所以對explain相關的知識進行一個簡單的整理概括。mysql
EXPLAIN:算法
SELECT
執行的詳細信息;按照MySQL在處理語句時讀取它們的順序列出這些表。
id = 1
select_type = SIMPLE
table = clazz
partitions =
type = const
possible_keys = PRIMARY
key = PRIMARY
key_len = 98
ref = const
rows = 1
filtered = 100.00
Extra =