PL/SQL中循环不满足条件怎么跳出当前循环继续 就是像Java中一样 不满足条件 break 但是可以继续循环
解决方案 »
- oracle提示触发器无效且未通过重新验证
- row_number() over()在公司家的运行结果不一样,求助,急,在线等。。。。。
- 复杂的数据去重问题
- oracle如何批量编译包体
- 求教:关于在Oracle的存储过程中动态调用函数并获取返回值的问题
- 急: 关于Oracle 连接问题!
- oracle816装好后,Enterprise Manager-Configuration Assistant进不去。
- 难题!!!oracle中到处数据问题??
- 大力兄:在.NET里面,用 mydata.Fill(ds); 得到Oracle的存储过程的记录集,抛出一个异常,请帮我看看怎么解决?(
- 在创建表怎样将一列(主键)设为自动增长?
- 咨询一个SQL优化问题。
- full join 执行非常慢
--原来是这样的
loop
select col into v_col from tbname ;
end loop ;--改成这样的,就会把异常吃掉了,但是别忘了异常处理,起码也应该记录一下吧.
loop
begin
select col into v_col from tbname ;
exception
when no_data_found then
--exception handle
when value_error then
--exception handle
end ;
end loop;
begin
select col into v_col from tbname ;
exception
when no_data_found then
--exception handle
when value_error then
--exception handle
when other then
--exception handle
end ;
end loop;
declare
nT integer;
begin
-- <<label_name>>
nT := 0;
<<label_1>>
loop
if(nT > 100) then
exit;
end if;
nT := nT + 1;
if(mod(nT,2)=1) then
goto label_1;
end if; dbms_output.put_line(nT);
end loop;
end;在11g中貌似实现了continue