Is there a way to execute a cursor for a loop with a dynamic SQL statement?
If I do not want to declare a record, I can do something like this (only if I declared a cursor ..):
For I in cuSelect Loop dbms_output.put_line(I.NAME); End Loop;
And I can open the cursor for the dynamic SQL statement:
Open cuSelect For 'Select * From TAB_X'; Fetch ceSelect Into recSelect; Close cuSelect;
But for this I must first declare a record.
Now my problem is that I have to open the Cursor for a very large and complex dynamic SQL statement. The structure of the record is unknown. Is there a way to open a variable cursor and iterate over it using an βundeclaredβ record?
Thank you for your help.
user1808751
source share