How do I call an Oracle stored procedure with parameters?
It has one input and one output parameter, and looks like doSomething(IN x,OUT y);
.
How do I call it from the command line?
Assuming SQL*Plus:
var v_result number
exec doSomething(42, :v_result);
print v_result
You can put that into a SQL script and pass that on the commandline to SQL*Plus.
try this
BEGIN
var v_outparam1 number;
var v_outparam2 number;
exec myProc(v_outparam1,v_outparam1);
END;
/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.