各位大虾好,能否帮我解释下我下面的语句哪里错啦
declare
begin
for j in 1..10 loop
if j>3 then
goto nextloop;
end if;
dbms_output.put_line(j);
end loop;
<<nextloop>>
end;
/
而下面这个是正确的,我真的感觉好奇怪,可能是从来没用过这个goto
Declare
vn number :=1;
begin
loop
dbms_output.put_line(vn);
vn := vn + 1;
if vn > 50 then
GOTO nextloop;
end if;
end loop;
<<nextloop>>
dbms_output.put_line('done');
end;
/
declare
begin
for j in 1..10 loop
if j>3 then
goto nextloop;
end if;
dbms_output.put_line(j);
end loop;
<<nextloop>>
end;
/
而下面这个是正确的,我真的感觉好奇怪,可能是从来没用过这个goto
Declare
vn number :=1;
begin
loop
dbms_output.put_line(vn);
vn := vn + 1;
if vn > 50 then
GOTO nextloop;
end if;
end loop;
<<nextloop>>
dbms_output.put_line('done');
end;
/
解决方案 »
- 左连接显示
- 【再次求解】oracle 数据文件大小为百分比如何创建???
- oracle sqlldr 出现达到提交点 - 逻辑记录计数 86
- 如何将秒换算成小时分秒的形式
- ubuntu系统中运行java程序调用oracle 的sqlplus,为什么找不到sqlplus呢?
- oracle里检测SQL语句执行的东西
- select field into var from t whereclause ,当t中没有符合条件的值时,用sqlcode怎样判断?入内
- 如何在oracle 8.0.5下实现对多表并集的connect by查询?
- 如何取blob字段的长度?谢谢了!
- 请教一个多表连接得SQL语句
- oracle 新手求助
- oracle WIN7旗舰版64位 怎么安装
;