当前位置:Gxlcms > 数据库问题 > oracle如何执行存储过程

oracle如何执行存储过程

时间:2021-07-01 10:21:17 帮助过:13人阅读

procedure gokul_proc( pId in number, pName in varchar2, OutCur OUT G_PKG_REFCUR.rcDataCursor ) is BEGIN Open OutCur For select * from gokul_table ob where ob.active_staus-‘Y‘ AND ob.id=pId AND ob.name=pNname; END;

在sqlplus中执行如下:

VAR rc REFCURSOR
EXEC gokul_proc(1,‘GOKUL‘, :rc);
print rc

reference

版权声明:本文为博主原创文章,未经博主允许不得转载。

oracle如何执行存储过程

标签:存储过程

人气教程排行