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且没有用到索引,是不是用了or in 就用不到索引了?1 SIMPLE x ALL IDX_2,IDX_6,IDX_7 26731 Using where
添加回答
举报
0/150
提交
取消