Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Six of one . . .
On Tue, 17 Sep 2002 13:14:39 -0700, Martin Doherty
<martin.doherty_at_oracle.com> wrote:
>Ed, my gut agrees with your gut. Initiating a new query for each row to be
>processed sounds pretty resource-heavy compared with submitting a single query that
>identifies all rows to be processed.
I would also stick all the updated data into a PL/SQL collection (probably an index-by table) and then use the FORALL to loop through all the UPDATE statements. It's much faster than doing a separate UPDATE for each changed row.
John Received on Wed Sep 18 2002 - 23:01:43 CDT