现在的位置: 首页 > 综合 > 正文

oracle存储过程返回集合

2012年08月09日 ⁄ 综合 ⁄ 共 289字 ⁄ 字号 评论关闭
--包头
create or replace package pkg_test
as
type myCursor is ref cursor;

end pkg_test;

create procedure list_early_deaths(refcursor_name out pkg_test.myCursor) as
toesup pkg_test.myCursor;
begin
open toesup for
SELECT poets.name, deaths.age
FROM poets, deaths
WHERE poets.id = deaths.mort_id
AND deaths.age < 60;
return toesup;
end;

抱歉!评论已关闭.