文件名称:存储过程procedure存储过程procedure
文件大小:3KB
文件格式:PDC
更新时间:2013-05-03 14:43:20
存储过程procedure存储过程procedure
create or replace package qdy_package as type qdy_cursor is ref cursor; end qdy_package; create or replace procedure qdy_pro2(p_cursor out qdy_package.qdy_cursor) is begin open p_cursor for select * from emp; end; --函数 create function qdy_fun1(name varchar2) return number is yearsal number(7,2); begin select sal*12+nvl(comm,0)*12 into yearsal from emp where ename=name; return yearsal; end;