oracle如何執行預存程序,oracle預存程序

來源:互聯網
上載者:User

oracle如何執行預存程序,oracle預存程序

預存程序如下:

Create procedure gokul_proc(    pId in number,    pName in varchar2,    OutCur OUT G_PKG_REFCUR.rcDataCursor ) isBEGIN    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 REFCURSOREXEC gokul_proc(1,'GOKUL', :rc);print rc

reference

著作權聲明:本文為博主原創文章,未經博主允許不得轉載。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.