I have created a complex PL/SQL procedure which has out parameters as 'return values'. I would like to test it out in SQL Plus. But how do I get/see the values in SQL Plus?
My procedure signature is
PROCEDURE proc_enrich
Argument Name Type In/Out Default?
------------------------------ ----------------------- ------ --------
AIDSOURCE VARCHAR2 IN
AIDVal VARCHAR2 IN
ANAID VARCHAR2(20) OUT
ANADESC VARCHAR2(36) OUT
ANACODE CHAR(3) OUT
I tried the obvious, but I think the theory is that I passed in some sort of variables (does it mean I have to 'declare' them first). but my main question really is how do I do the SELECT bits...?
My procedure signature is
PROCEDURE proc_enrich
Argument Name Type In/Out Default?
------------------------------ ----------------------- ------ --------
AIDSOURCE VARCHAR2 IN
AIDVal VARCHAR2 IN
ANAID VARCHAR2(20) OUT
ANADESC VARCHAR2(36) OUT
ANACODE CHAR(3) OUT
I tried the obvious, but I think the theory is that I passed in some sort of variables (does it mean I have to 'declare' them first). but my main question really is how do I do the SELECT bits...?