想把列为null的写为其他 update语句怎么实现 谢谢UID     YIJI    ERJI
617766 NULL NULL
625365 NULL NULL
637671 NULL NULL
637862 NULL NULL
639309 NULL NULL想实现如下的
UID     YIJI    ERJI
617766 其他 其他
625365 其他 其他

解决方案 »

  1.   

    update tb
    set yiji='其它'
    where yiji is null
      

  2.   

    update tb
    set erji='其它'
    where erji is null
      

  3.   

    update tb
    set yiji=isnull(yiji,其它),erji=isnull(erji,其它)
    where yiji is null or erji is null
      

  4.   


    update tb
    set yiji=isnull(yiji,'其它'),erji=isnull(erji,'其它')
    where yiji is null or erji is null
      

  5.   

    update tab set yiji=isnull(yiji,'其它'),erji=isnull(erji,'其它')
      

  6.   

    update tableName
    set YIJI=isnull(YIJI,'其它'),ERJI=isnull(ERJI,'其它') 
    where YIJI is NULL or ERJI is NULL 
      

  7.   

    update tableName
    set YIJI='其它',ERJI='其它'
    where YIJI ='' and  ERJI =''