How to execute a stored procedure with out parameter. [message #461213] |
Thu, 17 June 2010 02:06 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
mahmud732
Messages: 82 Registered: October 2009 Location: Dhaka
|
Member |
|
|
I have created a procedure like this
CREATE OR REPLACE PROCEDURE SCOTT.GetEmpList(p_recordset OUT SYS_REFCURSOR) AS
BEGIN
OPEN p_recordset FOR
SELECT * FROM scott.emp
WHERE deptno=10;
END GetEmpList;
Now i would like to execute this procedure in sqlplus which will display the following:
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7782 CLARK MANAGER 7839 6/9/1981 2450 10
7839 KING PRESIDENT 11/17/1981 5000 10
7934 MILLER CLERK 7782 1/23/1982 1300 10
Please help me anyone.
Regards
Mahmud
|
|
|
|
|
|
|
|