例子:
ID    Title
1      abc
2      NULL
3      def
4      NUll如何将Title列为空的列删除?

解决方案 »

  1.   

    delete from 表 where title is null
      

  2.   

    如果是列删除
    if exists(select 1 from 表 where title is null)
    alter table 表 drop column title
      

  3.   

    delete tablename where col is null
      

  4.   

    delete from 表 where isnull(title,'')=''
      

  5.   

    delete from tablename where title is null
      

  6.   

    delete from table where title is null
      

  7.   

    delete from tablename where title is null
      

  8.   

    delete tablename where title is null