22,297
社区成员
发帖
与我相关
我的任务
分享
select c=case
when a is null then d
when b is null then d
else c end from 表名
select case when a is null or b is null then d else c end from tbselect a,b,case when a is null or b is null then d else c end as c from tbselect a,
b,
c=case when ISNULL(A,'')='' or ISNULL(B,'')='' then d else c end
from tbselect a,
b,
c=case when a is null or b is null then d else c end
from tbselect c=case when a is unll or b isnull then d else c endselect a,b,c=case when a is null or b is null then d else c end,d
from tb