34,838
社区成员




update A
set ps = case when isnull(ps,'') = '' then b.ps1 else ps end,
wd = case when isnull(wd,'') = '' then b.wd1 else wd end
from a ,b
where a.id = b.id
update a set ps=ps1 from a,b where id=id1 and isnull(ps,'')=''
update a set wd=wd1 from a,b where id=id1 and isnull(wd,'')=''