注册 登录
编程论坛 Oracle论坛

oracle 怎么样过程动态传入参数??

无赖 发布于 2007-10-25 20:23, 1777 次点击

在创建过程中怎么样过程动态传入参数?就是要在执行时不是直接写exec 过程名(参数),
而是执行过程后根据提示写入参数!!!
请各位老大。指点指点!!!!
2 回复
#2
ILoveMK2007-10-25 21:35

可以用'&'来实现
create or replace procedure test as
salary number(5);
begin
select sal into salary from emp
where empno=&no;
end;
/

#3
无赖2007-10-26 19:12

感谢!!感谢

1