SQL> create procedure loop_execute (loop_num in number)
2 AS
3 BEGIN
4 DECLARE i number;
5 BEGIN
6
7 WHILE i <= loop_num
8 LOOP
9 EXECUTE proc_test5;
10 END Loop;
11 END;
12 END;
13 /
Warning: Procedure created with compilation errors.
SQL> show errors
Errors for PROCEDURE LOOP_EXECUTE:
LINE/COL ERROR
-------- -----------------------------------------------------------------
9/11 PLS-00103: Encountered the symbol "PROC_TEST5" when expecting one
of the following:
:= . ( @ % ; immediate
The symbol ":=" was substituted for "PROC_TEST5" to continue.
SQL> EXECUTE proc_test5;
PL/SQL procedure successfully completed.
SQL>
PLEASE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
READ THOSE MANUALS!
WHAT IS THE CORRECT SYNTAX TO CALL A PROCEDURE WITHIN A PROCEDURE.
THE ANSWER IS IN YOUR PL/SQL REFERENCE MANUAL!!!!!!!
DOES IT INCLUDE USING 'EXECUTE'?
IS EXECUTE A PL/SQL KEYWORD?
Sybrand Bakker, Senior Oracle DBA
To reply remove -verwijderdit from my e-mail address
"Karsten Farrell" <kfar...@belgariad.com> wrote in message
news:wLbH9.921$4t7.16...@newssvr13.news.prodigy.com...
"Sybrand Bakker" <gooid...@sybrandb.demon.nl> wrote in message
news:n8fquucq0886p3pba...@4ax.com...
> By the way, I am from sql server environment and old habits do
>creep in occasionally. Hope you understand and not make sweeping judgement
>about others.
>Regards.
This group has demonstrated many times before that people brainwashed
by sqlserver *NEVER* read *ANY* manual, and misuse this group as a
*FIRST* resource, instead of trying to find the solution themselves.
It is *quite clear* you do the same. So you will *NEVER* learn to use
Oracle, without someone holding your hand.
It's just plain laziness and inconsideration.
"Sybrand Bakker" <gooid...@sybrandb.demon.nl> wrote in message
news:9p5ruu87i7uou00ai...@4ax.com...