首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

存储过程中的输入跟输出

2012-08-28 
存储过程中的输入和输出存储过程中的输入和输出create or replace procedure sp_test ascursor c_groupiss

存储过程中的输入和输出

存储过程中的输入和输出

create or replace procedure sp_test ascursor c_groupisselect ename from emptestwhere sal > 2000 group by job;beginfor r_group in c_grouploopupdate emptest set comm = comm+3000;end loop;end;create or replace procedure sp_findname (i_ename in varchar2,o_sal out number)asbeginselect sal into o_sal from emptestwhere ename = i_ename;exceptionwhen othersthen dbms_output.put_line('error');end;declarev_sal emptest.sal%type;beginsp_findname('STAR',v_sal);dbms_output.put_line('v_sal is'||v_sal);end;
?

热点排行