d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Oracle Select Result From Package
Add Reply New Topic New Poll
Member
Posts: 4,609
Joined: Mar 9 2008
Gold: 2,937.00
Apr 17 2014 07:26am
I am trying to call a package and return the value returned from the package in a result set not in the dbms_output.

Code

declare
result number;
myCursor REF CURSOR;
BEGIN
result := my_package(56);
open myCursor for
select result from sys.dual;
END;


I searched and found this cursor value but I cannot seem to get it to work. This is basically the result I want:

result
------
56

This is all I want to do is to display the value as a result set.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll