Reputation: 1
If I try this I am getting the below error:
ORA-06511: PL/SQL: cursor already open
is there any way to do this?
Upvotes: 0
Views: 94
Reputation: 531
The error is self explanatory. You can not reuse the cursor whilst it is still open, but you can always close it and open it back up.
If you want to use a cursor within a cursor loop, you'll need another cursor.
Upvotes: 1