Skip to Main Content

Oracle Database Discussions

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!

testing stored procedure in toad

821806Dec 7 2010 — edited Dec 7 2010
DECLARE
PTABLENAME VARCHAR2(200);
PCOLUMNID VARCHAR2(200);
PCOLUMNNAME VARCHAR2(200);
PWHERECLAUSE VARCHAR2(200);
CUR_REC SYS_REFCURSOR;


BEGIN
PTABLENAME := 'HR.TBL_COMMITTEE';
PCOLUMNID := 'COMMITTEEID';
PCOLUMNNAME := 'COMMITTEENAME';
PWHERECLAUSE := 'ISDELETED=0';
-- CUR_REC := NULL; Modify the code to initialize this parameter

HR.USP_COMBOFILL ( PTABLENAME, PCOLUMNID, PCOLUMNNAME, PWHERECLAUSE, CUR_REC );
COMMIT;

LOOP

EXIT WHEN CUR_REC%NOTFOUND;
DBMS_OUTPUT.put_line(TO_CHAR(CUR_REC.COMMITTEENAME));
END LOOP;
CLOSE CUR_REC;

END;


I want to test my PROC through this code in toad is there any alternate??
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 4 2011
Added on Dec 7 2010
2 comments
1,109 views