PL/SQL (MOSC)

MOSC Banner

Dynamic SQL with REF CURSOR

edited Sep 24, 2013 11:09PM in PL/SQL (MOSC) 4 commentsAnswered
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 :

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center