2、Oracle 多表更新方法:
语法:
update test1 set (test1.name,test1.age)= (select test2.name,test2.age from test2 where test2.id=test1.id)
3、MySql多表更新方法:
update test1,test2 set test1.name=test2.name,test1.age=test2.age where test1.id=test2.id
4、通用方法
update test1 set name=(select name from test2 where test2.id=test1.id), age=(select age from test2 where test2.id=test1.id)