如何通過oracle存儲過程返回數據集

create or replace package temppkg
is
type mytable is ref cursor;
procedure Get_Template(cur_mytable out mytable);
end;
/


create or replace package body temppkg
is
procedure Get_Template(cur_mytable out mytable)
is
begin
      open cur_mytable for select * from ZBGL_CW_HISMX;
end Get_Template;
end temppkg;
/

發佈了23 篇原創文章 · 獲贊 0 · 訪問量 6萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章