那where NickNmae=NULL试试,你可以先select 一下

解决方案 »

  1.   

    你用的是什么数据库?我用MySQL测试过了,用
    select * from test where name="";
    没有问题的。
      

  2.   

    我要在两个数据库上面查询
    试验用的是ACCESS,
    select * from test where name="";
    无效
    实际开发运转时用DB2
    还没来机会验证
      

  3.   

    select * from test where NickName is null
    注意大小写
      

  4.   

    不能用‘’一定要用is NULL。
      

  5.   

    where NickName is null,如果测试非空值
    where Nickname is not null