oracle 中呼叫 store procedure

ysjxjf發表於2006-07-08
oracle 中呼叫 store procedure[@more@]1 Create or replace procedure ex_ref(v_cur IN OUT sys_refcursor)
2 as
3 Begin
4 open v_cur for select first_name from emp where rownum<3;
5* end;
SQL> /

Procedure created.

SQL> var c1 refcursor
SQL> exec ex_ref(:c1);

PL/SQL procedure successfully completed.

SQL> print c1

FIRST_NAME
--------------------
Donald
Douglas

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/66634/viewspace-847857/,如需轉載,請註明出處,否則將追究法律責任。

相關文章