【发布时间】:2019-03-11 18:01:01
【问题描述】:
declare
sum number:=0;
count number:=0;
pnum number:=0;
temp number;
begin
for i in 1..25
loop
temp:=i;
count:=0;
for j in 1..25
loop
if mod(i,j)=0 then
count:=count+1;
end if;
end loop;
if count=2 then
sum:=sum+temp;
pnum:=pnum+1;
end if;
exit when pnum=10;
end loop;
dbms_output.put_line(sum);
end;
在 Oracle 服务器上遇到错误:
ORA-06550:第 21 行,第 17 列:PLS-00103:遇到符号“+” 预期以下情况之一时:
(
ORA-06512:在“SYS.WWV_DBMS_SQL_APEX_180200”,第 548 行 ORA-06550:行 28、第25栏:PLS-00103:预期时遇到符号“)” 以下之一:
(
【问题讨论】: