Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Display REF CURSOR output of Procedure in table format

605724Mar 11 2009 — edited Mar 11 2009

I'm using SQL Developer 1.5.3. The REF CURSOR result is not displayed when executing the following code. I understand that fetch and loop through DBMS_OUTPUT.PUT_LINE is required to display the result - but this is not displayed table format. However, some 3rd party tools, seem to provide this functionality - where without fetch and looping through DBMS_OUTPUT.PUT_LINE, the result is displayed in table format.



Is there any work around to display REF CURSOR result in a table format in SQL Developer?

bq. create or replace PROCEDURE GetEmpRS \\ ( \\ p_deptno IN emp.deptno%TYPE, \\ p_recordset OUT Types.cursor_type) \\ AS \\ BEGIN \\ OPEN p_recordset FOR SELECT ename, empno, deptno FROM emp WHERE deptno = p_deptno ORDER BY ename; \\ END GetEmpRS;

Thanks in advance.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 8 2009
Added on Mar 11 2009
1 comment
1,462 views