设为首页 加入收藏

TOP

oracle如何执行存储过程
2015-11-21 01:42:42 来源: 作者: 【 】 浏览:0
Tags:oracle 如何 执行 存储 过程

存储过程如下:

Create 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-014:oracle中查看DBLink.. 下一篇postgresql导数据时无需输入密码..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: