<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ### 執行計劃explain 以下全部詳細解析explain各個屬性含義: ~~~ruby +----+-------------+-----------+------------+------+-------------------------------------+-------------------------------------+---------+-------+------+----------+-------+ | id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra | +----+-------------+-----------+------------+------+-------------------------------------+-------------------------------------+---------+-------+------+----------+-------+ ~~~ **各屬性含義:** * id: 查詢的序列號 * select\_type: 查詢的類型,主要是區別普通查詢和聯合查詢、子查詢之類的復雜查詢 * SIMPLE:查詢中不包含子查詢或者UNION * 查詢中若包含任何復雜的子部分,最外層查詢則被標記為:PRIMARY * 在SELECT或WHERE列表中包含了子查詢,該子查詢被標記為:SUBQUERY * table: 輸出的行所引用的表 * type: 訪問類型 * ALL: 掃描全表 * index: 掃描全部索引樹 * range: 掃描部分索引,索引范圍掃描,對索引的掃描開始于某一點,返回匹配值域的行,常見于between、等的查詢 * ref: 使用非唯一索引或非唯一索引前綴進行的查找 * (eq\_ref和const的區別:) * eq\_ref:唯一性索引掃描,對于每個索引鍵,表中只有一條記錄與之匹配。常見于主鍵或唯一索引掃描 * const, system: 單表中最多有一個匹配行,查詢起來非常迅速,例如根據主鍵或唯一索引查詢。system是const類型的特例,當查詢- 的表只有一行的情況下, 使用system。 * NULL: 不用訪問表或者索引,直接就能得到結果,如select 1 from test where 1 * key: 顯示MySQL實際決定使用的索引。如果沒有索引被選擇,是NULL * key\_len: 使用到索引字段的長度 注:key\_len顯示的值為索引字段的最大可能長度,并非實際使用長度,即key\_len是根據表定義計算而得,不是通過表內檢索出的。 * ref: 顯示哪個字段或常數與key一起被使用 * rows: 這個數表示mysql要遍歷多少數據才能找到,表示MySQL根據表統計信息及索引選用情況,估算的找到所需的記錄所需要讀取的行數,在innodb上可能是不準確的 * Extra: 執行情況的說明和描述。包含不適合在其他列中顯示但十分重要的額外信息。 * Using index:表示使用索引,如果只有 Using index,說明他沒有查詢到數據表,只用索引表就完成了這個查詢,這個叫覆蓋索引。 * Using where:表示條件查詢,如果不讀取表的所有數據,或不是僅僅通過索引就可以獲取所有需要的數據,則會出現 Using where
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看