简体   繁体   中英

How to call particular stored procedure in oracle

I have procedure into package of oracle that signature is:

PROCEDURE CourseGroupCost(cur              OUT SYS_REFCURSOR,
                            trainingOrg      IN VARCHAR)

How to call this procedure from oracle command or other hand what is syntax to call this procedure.

In SQL*Plus:

variable c refcursor;
execute package_name.CourseGroupCost(:c, 'trainingOrg value');
print c;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM