谢谢

解决方案 »

  1.   

    select * from 表 where 列1 <> 列2
      

  2.   

    比如,表名table1,中有wd1,wd11
    wd1  wd11
    -----------
    A     A
    B     C
    D     A
    --------
    得出结果
    B  C
    D  A
    就是把两个列数据不同的选出来
      

  3.   

    那楼上的就行了
     mengmou()mengmou() ( ) 信誉:100    Blog  2006-12-26 17:09:57  得分: 0  
     
     
       select * from 表 where 列1 <> 列2
      

  4.   

    select * from table1 where wd1<>wd11
      

  5.   

    至多加个条件select * from table1 where wd1<>wd11 or (wd1 is null and wd11 is null)