一直都认为是in的效率要高,但是这次确有点蒙圈. SELECT * FROM runinfo WHERE status in (0,2,1,3,4,7,9,10); 这个查询的效率是,经常是1秒多. mysql> SELECT * FROM runinfo WHERE status in (0,2,1,3,4,7,9,10); 106 rows in set (1.20 sec) 替换成下面这种写法之后, SELECT * FROM runinfo WHERE status = 0 union…