Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Nested cursors in Pro*C?
Ed Prochak wrote:
>
> Do you mean here that maybe you modify tables utilized by CURSOR1?
Ok, within the CURSOR2 loop, the SQL is limited to a fetch.
The additional SQL in the CURSOR1 loop (apart from the CURSOR1 fetches and the CURSOR2 declare, open, fetch and close) involves performing inserts, selects and deletes on both the table used by CURSOR2, and other tables.
If I remove the CURSOR2 loop, everything is fine.
> Also, by "contained within a transaction anyhow" do you imply
> that you are doing a commit before the next fetch of CURSOR1?
No, the transaction is begun before CURSOR1 is DECLARED and the transaction is committed after CURSOR1 is closed, so I _hope_ that transactions are not the issue here!
Ta!
James W.
Received on Mon Mar 22 1999 - 17:52:24 CST
![]() |
![]() |