null不能作为bool比较条件,null本身就是一个"未知的值"
select * from a 
where b is null或者
select * from a 
where nvl(b,'NVL_NULL')='NVL_NULL'

解决方案 »

  1.   

    空值不能用“=”、“<>”来判断,
    应该为
    where b is null (or where b is not null)
      

  2.   

    判断为空 is null
    不为空 is not null
      

  3.   

    用is null 或is not null
      

  4.   

    '' 与 null  是两个不同的概念~'' 空字符串
    null 没有任可数据应该用 is null 或is not null 来判断 null 
      

  5.   

    空值不能用“=”、“<>”来判断,
    where b <>null 的結果是where null!
    因為與null任何關系式得到的結果都是null,
    用is nul或is not null 就可以了