在oracel中修改关联表时,直接上实例:
update O o set (o.o1,o.o2,o.o3)=( select d.d1,d.d2,d.d3 from D d where o.o4=d.d4 ) where exists( select 1 from D d where o.o4=d.d4 )
这是两个表相关联,用D表中的值修改O表中的对应值