Explain索引優化實例

關於Explain的執行計劃詳細信息請參考上篇文章。下面用Explain分析案例。 首先創建表student結構,該表目前沒有索引,以下: mysql 1、案例1 案例:查詢學號student_num=1,年齡age>20,班級class=1的記錄 web id爲1,只有一次查詢; select_type爲SIMPLE,表示該條SQL爲簡單查詢; table爲student,表示查詢來自stude
相關文章
相關標籤/搜索