设置条件为:
null,NULL
"",''
均告失败,就是查询不出来惭愧~这问题貌似有些弱智

解决方案 »

  1.   

    对了,我用的管理工具是mysqladmin
    不知道这有没有影响
      

  2.   

    刚得知应该
    is null而不是用=
      

  3.   

    空字符串为: =''null值则为:  where field_name is (not) null 或 ifnull(field_name,'')=''
      

  4.   

    SELECT * FROMM TB WHERE 字段 IS NULL OR 字段='' OR LOWER(字段)=LOWER('NULL')
      

  5.   

    select * from yourTable where col is null;mysql> select * from t_asoliddream66;
    +------+------+
    | id   | col  |
    +------+------+
    |    1 | NULL |
    |    2 | aaa  |
    |    3 | NULL |
    |    4 | bbb  |
    +------+------+
    4 rows in set (0.05 sec)mysql> select * from t_asoliddream66 where col is null;
    +------+------+
    | id   | col  |
    +------+------+
    |    1 | NULL |
    |    3 | NULL |
    +------+------+
    2 rows in set (0.08 sec)mysql>