plsql - How to Mimic a Continue Statement in a Cursor-For-Loop in Oracle 10G PL/SQL? -
in oracle 10g, there no continue statement. typically mimicked in explicit cursor such:
open c_cur ; <<cont>> loop ... if condition = 10 goto cont ; end if; end loop; close c_cur ;
given loop keyword follows cursor in cursor-for-loop syntax, how can continue statement mimicked?
for rec in c_cur loop ... end loop ;
for rec in c_cur loop ... if condition = 10 goto cont ; end if ; <<cont>> null; -- end cannot preceeded <<marker>> end loop ;
Comments
Post a Comment