Oracle存储过程中mdash;mdash;PLS-00103:出现符号ldquo;/rdquo;在需要下列之一时:(
oracle中编写一存储过程:出现如下错误,
PLS-00103:出现符号“/”在需要下列之一时:(
经过各种谷歌百度,在存储过程中定义变量不允许使用关键字,而我定义了变量sum,导致错误。
经过编译后的过程代码为:
create or replace procedure avg_sal(result out char)
is
i number(5);
summ number(20);
countnum number(20);
begin
i:=10;
while i i:= i+10;
select sum(salary),count(*) into summ countnum from emp where deptno=i;
result:=summ/countnum;
end loop;
end;
/

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号