update b
set b.col3 = (select a.col3 from a where a.col1 = b.col1 and a.col2 = b.col2)
where exists (select 1
from a
where a.col1 = b.col1 and a.col2 = b.col2)
我這裡有一個例子可以幫你。
update part1 a set (a.dose,a.totaldose)=
(select b.dose,b.totaldose from part2 b where a.partno=b.partno)
where exists(select b.partno from part2 b where a.partno=b.partno);