Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to execute a procedure in sql developer with IN and OUT paramter?


What I have tried:

var a refcursor;
exec PROC_NAME('input1','input2', :a);
print a;
Posted
Updated 11-Jul-18 2:18am
Comments
CHill60 11-Jul-18 4:05am    
And how are the parameters to that procedure defined? What happens when you run your code?
Did you do any research? See tutorials from here Oracle Tutorials - Parameter Modes Supported by PL/SQL[^]

1 solution

you will need to add a return to your stored procedure. So when the procedure runs it will return a value. This can be static of a value from the TSQL you run in your stored procedure.

Check this link for more info <a href="https://docs.microsoft.com/en-us/sql/t-sql/language-elements/return-transact-sql?view=sql-server-2017"></a>
 
Share this answer
 
Comments
MadMyche 11-Jul-18 8:49am    
1. This isn't SQL Server, this is ORACLE.
2. Even if it was, RETURN is different than OUTPUT

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900