Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Create procedure with Cursors, input, and output.
I hope that this hasn't been posted twice, but I can't find it anywhere in the messages.
I want to create a procedure. This procedure will have:
- input variable(s)
What is aggravating is that I can get things to work in SQLPLUS, but I can't get them to work in PL/SQL.
IN SQLPLUS:
declare
CURSOR NTSI IS
Select
ntsi_ref,
ntsi_code
from agt_ntsi; var_ntsi_ref agt_ntsi.ntsi_ref%type; var_ntsi_code agt_ntsi.ntsi_code%type;begin
1234, the_result
PL/SQL procedure successfully completed.
However, trying to do similar things in PL/SQL will only give:
Warning: Procedure created with compilation errors.
How can I get the simple concept to work in reality?
Thanks in Advance. Received on Thu Apr 03 1997 - 00:00:00 CST
![]() |
![]() |