mysql 不走索引的情形

mysql 不走索引的情形:mysql 1. null 值判斷;sql 2. != , <> 操做符;函數 3. or(大多數狀況下);spa 4. in(大多數狀況下);blog 5. like的使用(大多數狀況下);索引 6. where 子句中對字段進行表達式操做,eg: select id from t where num/2=100 ;it 7. 在 where 子句中對字段進行函數操做
相關文章
相關標籤/搜索