表A
ID   value1   value2   value3
1     null     3        1
2     2        2        null
3     3        null     null
4     null     null     null
....
如何删除value1到3都为空值的行?
得到:
ID   value1   value2   value3
1     null     3        1
2     2        2        null
3     3        null     null
....

解决方案 »

  1.   

    DELETE table WHERE value1 IS NULL AND value2 IS NULL AND value3 IS NULL
      

  2.   

    delete 表
    where value1 is null and value2 is null and value3 is null
      

  3.   

    delete A
    where value1 is null and value2 is null and value3 is null
      

  4.   

    delete t
    where value1='' and  value2='' and    value3=''
      

  5.   

    delete a where isnull(value1,'')='' and isnull(value2,'')=''  and isnull(value3,'')=''
      

  6.   

    我前面寫的針對字符型有效,數字型要用到isnull(字段,'')來判斷