我的表里有空白 也就是''    请教如何把 ''变成null

解决方案 »

  1.   

    update tb set
        col = null
    where col = ''
      

  2.   

    update tb set col=null where col=''
      

  3.   

    ISNULL(COL,'')=''UPDATE TB SET COL=NULL WHERE COL=''
      

  4.   

    update tb set col=null where col=''
      

  5.   

    update tb set col=null
    where len(col)=0 or col='null'
      

  6.   

    update table1 set field001=null
      

  7.   

    update table1 set column1=NULL where id=79
      

  8.   

    update tab set col='null' where col=''