MySQL優化——explain使用詳解

一、理論基礎 1.1、簡介 (1)explain作用 explain顯示了mysql如何使用索引來處理select語句以及連接表。可以幫助選擇更好的索引和寫出更優化的查詢語句。 (2)explain用法 在select語句前加上explain就可以了 如:explain select surname,first_name form a,b where a.id=b.id  1.2、EXPLAIN列
相關文章
相關標籤/搜索