select * from table_name where column_value is null

解决方案 »

  1.   

    在oracle里null和空是不一样的!
      

  2.   

    select * from table_name where column_value=' ';
    ' '和null是不一样的
      

  3.   

    select * from table_name where column_value='';或collumn_value is null
      

  4.   

    首先使用有问题,要用单引号
    其次,如果你想查询null的情况,使用=''是不可以的,必须用is null操作