「筆記」MySQL 實戰 45 講 - 實踐篇(五)

MySQL Join 背景介紹:t1,t2 表結構一致(字段 id,a,b —> PRIMARY KEY (id), KEY a (a) Index Nested-Loop Join 栗子:select * from t1 straight_join t2 on (t1.a=t2.a); straight_join 讓 MySQL 使用固定的連接方式執行查詢(即這裏 t1 會驅動表 Index N
相關文章
相關標籤/搜索