Little help needed here. I'm new to Oracle and i'm not understaning the the syntax of calling a store procedure that has a single in-out parameter. Any example please?
A:
From the tag I assume you are asking to invoke a oracle SP from SQL plus...
Say you have an SP with name test_me then from sql plus
SQL> execute test_me (parameters_value)
S M Kamran
2009-07-13 10:33:06
This will fail with "PLS-00363: expression 'parameters_value' cannot be used as an assignment target "
jva
2009-07-13 10:41:00
+1
A:
You can use an anonymous PL/SQL block to do this:
BEGIN
do_something();
END;
cletus
2009-07-13 10:38:02
+4
A:
-- procedure
CREATE OR REPLACE PROCEDURE test_proc (param IN OUT NUMBER)
IS
BEGIN
NULL;
END;
-- call procedure
DECLARE
var NUMBER;
BEGIN
test_proc (var);
END;
jva
2009-07-13 10:38:20