Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Multi row updates on the primary key
Hi,
did you try :
update table2 a set col_sum = (select sum(col_sum) from table1 b
where a.key1=b.key2 and a.key2=b.key2 and ...
group by b.key1, b.key2, ...);
Received on Mon May 26 1997 - 00:00:00 CDT
![]() |
![]() |