我在录入时,有些字段比如职称空着没有内容,现在想查询一下,那些记录职称内容为空,给个SQL语句。

解决方案 »

  1.   

    select * from tablename where 职称  is null
      

  2.   

    select * from tablename where 职称  is null
      

  3.   

    select * from tablename where 职称 is null or 职称 = ''
      

  4.   

    select * from tablename where 职称 is null or 职称 = ''
      

  5.   


    weizi2000(秋风啊-秋的叹息) 兄的:
    select * from tablename where 职称 is null or 职称 = ''应该是正确的~~
      

  6.   

    我要说的,上面的都已经说了!
    select * from tablename where 职称 is null or 职称 = ''
      

  7.   

    select * from tablename where 职称 is null or 职称 = ''
      

  8.   

    select * from tablename where 职称 is null or 职称 = ''
    这个最全面!