Welcome 微信登录

首页 / 数据库 / MySQL / Oracle存储过程中——PLS-00103:出现符号“/”在需要下列之一时:(

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<40 loop
  i:= i+10; 
  select sum(salary),count(*) into summ countnum from emp where deptno=i; 
  result:=summ/countnum;
 end loop;
end;
/更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12手动编译安装MySQL 5.5.28aMySQL前缀索引导致的慢查询相关资讯      Oracle存储过程  PLS-00103 
  • Oracle存储过程拼接in语句 & 自定  (今 09:21)
  • 【PL/SQL系列】Oracle存储过程使用  (04月23日)
  • Oracle存储过程及Java调用  (05/28/2015 20:29:33)
  • Java调用Oracle存储过程返回多条结  (04月29日)
  • Oracle中的存储过程简单应用  (04月10日)
  • 判断点是否落在面中的Oracle存储过  (05/09/2015 09:39:30)
本文评论 查看全部评论 (0)
表情: 姓名: 字数


评论声明
  • 尊重网上道德,遵守中华人民