I am a little bit surprised when I compile and run procedure from the
green button as shown in pic1, I get the output from the output variable.
Here is my simple code:
CREATE OR REPLACE PROCEDURE RUNPROCEDURE
(P_para1 in EMP.ID%type,P_PARA out SYS_REFCURSOR)
AS
BEGIN
OPEN P_PARA FOR
SELECT *
FROM emp
WHERE ID = P_para1;
END RUNPROCEDURE;
But when the same I run from the query browser, I did not see any output :=
set serveroutput on;
declare P_PARA1 number;
P_PARA SYS_REFCURSOR;
begin
RUNPROCEDURE(
P_PARA1 => 2,
P_PARA => P_PARA
) ;
end;
/
It just displays
PL/SQL procedure successfully complete
and I don't see any output.
Any help appreciated.
