Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: how would you do it?

Re: how would you do it?

From: klabu <klabu76_at_gmail.com>
Date: Fri, 15 Dec 2006 18:44:14 -0500
Message-ID: <12o6cqfacc8ffd4@corp.supernews.com>

> However, I need to be able to run a procedure which name is a part of
> the cursor-for-loop.

so ? concatenate....
something like this ?

DECLARE
     l_proc VARCHAR2(2000) ;
BEGIN
for x in (select seq, proc from table t order by seq) loop
l_proc := l_proc || i.proc || ';' || chr(10) ; end LOOP ;
l_proc := 'begin' || chr(10) || l_proc || chr(10) || 'end;' ; execute immediate l_proc ;
END; Received on Fri Dec 15 2006 - 17:44:14 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US