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;