select * from wloldnew 
       where oldcode in (121050109,121050109,121050110,121050110,121050109.);请教个问题,我想让这个查询返回重复行,如何操作呢默认的自动把重复行过滤掉了,有什么办法能返回重复行吗? 

解决方案 »

  1.   

    表wloldnew 里没有重复几率吧,如果有oldcode =121050109的重复记录,应该你的查询返回重复行的
      

  2.   

    表wloldnew中都不重复,实际上查询结果不返回重复行
      

  3.   


    select * from wloldnew  
      where oldcode = 121050109
    union all
    select * from wloldnew  
      where oldcode = 121050109
    union all
    select * from wloldnew  
      where oldcode = 121050110
    ....