解决方案 »

  1.   

    使用union all 进行拼接
      

  2.   

     不行哦,union all 是把两个表数据合并起来,我要的是根据条件过滤
      

  3.   

    使用or很容易不走索引,而union all的方式会走索引的select * from table where (列1=1  and 列2 = 2 and 列3=3)
    union all
    select * from table where  (列1=2  and 列2 = 3 and 列3=4)