具体情况如下:
存储过程:
create or replace procedure new_test(p1 varchar2,p2 varchar2) is
i int;
begin
i:=1;
end new_test;
测试脚本,PL/SQL DEVELOPER自动生成如下:
begin
-- Call the procedure
new_test(p1 => :p1,
p2 => :p2);
end;
如上执行可以通过,但得到的p1/p2均为空,且不明我没有declare p1,它怎么能赋值给:p1?
修改如下:
begin
-- Call the procedure
new_test('1',
'2');
end;
则错误:ORA-01036:illegal variable name/number,但在GOLDEN下可以执行。
如下修改:
begin
-- Call the procedure
new_test('1' => :p1,
'2' => :p2);
end;
则错误:ORA-06550:line 3,column 3:
PLS-00306:wrong number or types of arguments in call to 'new_test'
存储过程:
create or replace procedure new_test(p1 varchar2,p2 varchar2) is
i int;
begin
i:=1;
end new_test;
测试脚本,PL/SQL DEVELOPER自动生成如下:
begin
-- Call the procedure
new_test(p1 => :p1,
p2 => :p2);
end;
如上执行可以通过,但得到的p1/p2均为空,且不明我没有declare p1,它怎么能赋值给:p1?
修改如下:
begin
-- Call the procedure
new_test('1',
'2');
end;
则错误:ORA-01036:illegal variable name/number,但在GOLDEN下可以执行。
如下修改:
begin
-- Call the procedure
new_test('1' => :p1,
'2' => :p2);
end;
则错误:ORA-06550:line 3,column 3:
PLS-00306:wrong number or types of arguments in call to 'new_test'
解决方案 »
- exp imp 导出导入 问题
- 请问怎样让用户无法修改表结构啊?
- 两表级联更新与删除的问题
- 急急急:行锁定问题
- 有人能帮我explain一下吗每名的意思?
- 初始化参数文件自定义问题
- 祝大家春节快乐
- 刚装了orcal8i,全局数据库的账户和密码是什么??
- oracle9i...编程连接数据库是提示:ORA-12154: TNS: 无法处理服务名 ?
- 我下载了oracle for linux放在fat32的硬盘格式里面,不知如何在linux8 下安装放在fat32下的oracle?
- 有哪些Oracle/db2特有的命令/用法,SQL Server不具备的?
- 在oracle存储过程中如何得到导致异常的sql语句?
在调试的时候下面有个窗口让你输入参数。
nicholaz我给了90分
zhenyukeji我给了10分。
为什么没有。大家千万别怪我.我已经投诉了。