索引優化四

儘可能使用覆蓋索引(只訪問索引的查詢(索引列和查詢列一致)),減小select*mysql EXPLAIN SELECT * FROM staffs where NAME='July' AND age=23 AND pos='dev'; EXPLAIN SELECT name,age,pos FROM staffs where NAME='July' AND age=23 AND pos='dev
相關文章
相關標籤/搜索