17,141
社区成员




update t1 set (姓名,成绩)=(select 姓名,成绩 from t2 where t1.学号=学号)
where exists(select 1 from t2 where t1.学号=t2.学号)
--也可以用10g的新关键字 merge into
merge into t1 using t2 on(t1.学号=t2.学号)
when matched then update set (t1.姓名=t2.姓名,t1.成绩=t2.成绩)