hi,
I am getting an error when using OUT parameter.
Error:
PLS-00306: wrong number or types of arguments in call to 'proc_name'
Where proc_name is the name of my procedure.
Following is the code i am using:
i want the procedure to return the value of val when it executes. I dont understand why does it give me the error. I have tried different ways and went through different manuals, but didnt get it resolved.
Please help me with the error.
Thanks in advance,
nabh4u.
I am getting an error when using OUT parameter.
Error:
PLS-00306: wrong number or types of arguments in call to 'proc_name'
Where proc_name is the name of my procedure.
Following is the code i am using:
Code:
CREATE OR REPLACE PROCEDURE proc_name (val OUT NUMBER) AS
CURSOR C IS
SELECT C_NO, C_INFO FROM C_TABLE;
BEGIN
FOR RS IN C
LOOP
BEGIN
val := val + 1;
END;
END LOOP;
END proc_name;
Please help me with the error.
Thanks in advance,
nabh4u.
Comment