想把列为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 其他 其他
617766 NULL NULL
625365 NULL NULL
637671 NULL NULL
637862 NULL NULL
639309 NULL NULL想实现如下的
UID YIJI ERJI
617766 其他 其他
625365 其他 其他
set yiji='其它'
where yiji is null
set erji='其它'
where erji is null
set yiji=isnull(yiji,其它),erji=isnull(erji,其它)
where yiji is null or erji is null
update tb
set yiji=isnull(yiji,'其它'),erji=isnull(erji,'其它')
where yiji is null or erji is null
set YIJI=isnull(YIJI,'其它'),ERJI=isnull(ERJI,'其它')
where YIJI is NULL or ERJI is NULL
set YIJI='其它',ERJI='其它'
where YIJI ='' and ERJI =''