mysql聯合索引

mysql聯合索引和查詢條件的匹配原則:mysql 只有當聯合索引的第一個字段在where條件中出現時,纔會使用索引查詢,否則就是全表掃描查詢。sql 表的索引爲:spa  KEY `Index_query` (`transorderid`,`userorderid`,`tradetype`,`orgcode`,`productid`) code 1、使用索引查詢的狀況:blog 一、查詢條件和索
相關文章
相關標籤/搜索