Dynamic SQL with REF CURSOR
Hello,
thanx in advance for any hint, experience or direction.
Dealing with the problem to prepare pl/sqlp procedure that suppose to make walk in For Loop.
For Loop suppose to be driven with SQL that is parameter into procedure.
Why that variability is considered ( bringing SQL as parameter into procedure for FOR LOOP ) ? "Select list" columns and From subclause of SQL Select are constant. It where subclause that can varies among several call of the procedure.
Annother issue of this felxible procedure are dynamic SQL clauses that suppose to be stored in some table catalogue.
If I illustrate this with pl/sql pseudocode :
0