例如open cur_1;
loop
fetch cur_1 into vn_x;
if cur_1%notfound then
exit;
end if;
if vn_x=5 then
重新fetch
end if;
--do other something
end loop;
close cur_1;
loop
fetch cur_1 into vn_x;
if cur_1%notfound then
exit;
end if;
if vn_x=5 then
重新fetch
end if;
--do other something
end loop;
close cur_1;
解决方案 »
- 创建表的storage的问题
- ORA-02291: 违反完整约束条件 (BEN.SYS_C005646)求解释
- oracle 麻烦的树型查询 请教高手
- 如何在存储过程中使用spool??
- ORACLE 的session问题,立刻给分
- oracle中的放在包package中的存储过程怎么看到代码
- 人家散分,我接了。我也散分,大家来接啊!祝圣诞快乐
- 分区问题??kang
- 存储过程里面有一个cursor的out型的参数,请问在java中可以拿到吗?
- 請問哪里有oracle9i上手的書down
- 痛苦啊,俺的win2k一启动到进度条将要结束就马上出现:Stop:c000026c unkonw hard error!!
- gcc怎么安装怎么用??急
loop
<<lab>>
fetch cur_1 into vn_x;
if cur_1%notfound then
exit;
end if;
if vn_x=5 then
goto lab;
end if;
--do other something
end loop;
close cur_1;