oracle :
update T1 t1
set ( t1.a,t1.b) = (select t2.a, t2.b from T2 t2);
sql:
update T1 t1 set
t1.a = t2.a,t1.b=t2.b,t1.c=t2.c
from T1 t11,T2 t2
where (t11.條件1) and (t2.條件2)
oracle :
update T1 t1
set ( t1.a,t1.b) = (select t2.a, t2.b from T2 t2);
sql:
update T1 t1 set
t1.a = t2.a,t1.b=t2.b,t1.c=t2.c
from T1 t11,T2 t2
where (t11.條件1) and (t2.條件2)