I have created one stored procedure in oracle:
PROCEDURE string_opp(input_string IN varchar2,output_string OUT varchar2)
Now the problem is how to execute this stored procedure and retrieve the output parameter.i’ve followed in sql developer:
SET SERVEROUTPUT ON
DECLARE
outputString VARCHAR;
BEGIN
EXEC string_opp('input String',:outputString);
END;
When i tried this i didn’t get anything, could someone help me?
Just a couple of issues:
You can use as the same variable:
Just define your procedure parameter as IN OUT in place of just OUT.
Check this resource:
http://psoug.org/snippet/FUNCTIONS-IN-OUT-parameter_873.htm