表a(id,name,age,home_adders,phone_number) 和 表b(id,name,adders,number) 两张表,两张表有id和name两个相同的字段,并且能够唯一确定一行,将表b中的adders和number信息更新到表a的home_adders和phone_number字段中,语句如下:
update a a set (a.home_adders,a.phone_number) = (select b.adders,b.number from b b where a.id = b.id and a.name = b.name) ;