Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Oracle 在存储过程中添加两个输入参数_Oracle_Stored Procedures - Fatal编程技术网

Oracle 在存储过程中添加两个输入参数

Oracle 在存储过程中添加两个输入参数,oracle,stored-procedures,Oracle,Stored Procedures,使用存储过程添加两个输入数字的步骤 create or replace procedure add (num1 in int,num2 in int)is begin declare output int; set output:=num1 + num2 dbms_output.enable(); dbms_output.put_line(output); end add; 我需要添加两个inpuut参数 begin; add(5,5) end; 结果: 10 我在编译过程时遇到了这个代

使用存储过程添加两个输入数字的步骤

create or replace procedure add
(num1 in int,num2 in int)is
begin
declare output int;
set output:=num1 + num2 
dbms_output.enable();
dbms_output.put_line(output);
end add;
我需要添加两个inpuut参数

begin;
add(5,5)
end;
结果:

10
我在编译过程时遇到了这个代码错误

我正在使用oracle 10g

看起来add是保留的:无法将其用作过程名称 您不需要此设置,并且必须同时声明: 那么如何称呼它:

exec add_(5,5)
还是别忘了;和/或在sqlplus中

看起来add是保留的:无法将其用作过程名称 您不需要此设置,并且必须同时声明: 那么如何称呼它:

exec add_(5,5)
还是别忘了;和/或在sqlplus中

输出:-

3 
输出:-

3 

更改了第4行的过程名称now错误遇到的符号=@j.chomel更改了第4行的过程名称now错误遇到的符号=@j.chomel
3