Skip to Main Content

SQL & PL/SQL

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!

how to print ref cursor result in toad

rajasekhar_nMar 4 2008 — edited Jan 20 2010
Hi All,

I have problem with refcursor in TOAD .Here is my procedure returning refcursof as a out parameter but i don't know how to declare & print a refcursor in TOAD ( in sqlplus i can do this).

PROCEDURE wcm_duplicate(pv_tname VARCHAR2,pv_col_name VARCHAR2,pv_cur out sys_refcursor)
IS
BEGIN
OPEN pv_cur FOR 'select '||pv_col_name||' ,count(*) from '||pv_tname||' GROUP BY '||pv_col_name||
' HAVING COUNT(*) > 1 ';
END wcm_duplicate;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 17 2010
Added on Mar 4 2008
5 comments
29,652 views