select * from table_name where column_value=''
用单引号

解决方案 »

  1.   

    select * from table_name where column_value=' '
    单引号中间价一个空格
      

  2.   

    select * from table_name where column_value=is null
      

  3.   

    上面错了
    select * from table_name where column_value is null
      

  4.   

    ''和' '不是一样的吧,用column_value=''或column_value<>''查NULL的字段是查不出结果的,要用column_value is null或is not null
      

  5.   

    有问题,如楼上所说,要使用单引号。
    duanzilin(寻) 说的有道理,如果要查询null的字段,你用=''等操作是不可以的
      

  6.   

    select * from table_name where trim(column_value)='' or column_value is null