sql多表联合修改

update aaa set aaa.name = bbb.name
from user_01 aaa
    left join user_02 bbb
        on aaa.code = bbb.code
where bbb.name is not null;
原文地址:https://www.cnblogs.com/ljsjxr/p/13475420.html