Oracle怎么执行带有输出变量的过程?过程如下
createorreplaceproceduremp(v_in_noinemp.empno%type,v_out_nameoutemp.ename%type)isbegi...
create or replace procedure mp(v_in_no in emp.empno%type,v_out_name out emp.ename%type) is
begin
select ename into v_out_name from emp where empno=v_in_no;
dbms_output.put_line('名字是'||v_out_name);
end;
/ 展开
begin
select ename into v_out_name from emp where empno=v_in_no;
dbms_output.put_line('名字是'||v_out_name);
end;
/ 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询