select round(sum(F14)/10000,2)from x where F3 =1090 and F56 = '1010' and a.F20 <> '2003' and (a.F18 >= 20161201 OR a.F19 >= 20161201)字段F3 F20 F18 F19 均有索引 ,用explain查看 type 為all且沒(méi)有用到索引,是不是用了or in 就用不到索引了?1 SIMPLE x ALL IDX_2,IDX_6,IDX_7 26731 Using where
mysql 單表查詢?yōu)槭裁礇](méi)有用到索引
喵喵時(shí)光機(jī)
2018-07-15 10:10:32