Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Help with CURSORS!!!
Given the code excerpt below, I'm getting compilation errors when I try to
store the procedure
in our database:
/***************************************************************************
**************************/
FETCH c INTO vRevDivNm; EXIT WHEN c%NOTFOUND; DBMS_OUTPUT.PUT_LINE('Division: '||vRevDivNm);END LOOP;
/***************************************************************************
**************************/
Compilation Errors:
Now here's the strange part - when I execute this PL/SQL in SQL*Plus 3.3 as
an anonymous
block, i.e., from the DECLARE through the first END, it executes fine and
returns the
desired output. So why does it not compile as a stored procedure?
P.S. server = Oracle v.7.2.3 on an HP/UNIX 3000 platform; client = MS
Windows 95
Thanks in advance,
![]() |
![]() |