| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.tools -> Re: Can someone please help "tune" this script?
you could try creating a pl/sqll loop to do it for you like below (needs editing to your requirements)
DECLARE CURSOR c1 IS
SELECT <primary key>, b.charged$, b.remit,
b.batch, b.paid_weight, b.audit_reason_code
FROM frt.mpay_working
WHERE ?????;
UPDATE frt.freight
SET charged$ = rec.charged$,
remit = rec.remit,
batch = rec.batch,
paid_weight = rec.paid_weight,
audit_reason_code = rec.audit_reason_code
WHERE <primary key> = rec.<primary key>;
COMMIT;
![]() |
![]() |