Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

"Continue" in plsql loop

NapsterMay 21 2007 — edited Sep 3 2010
Hi,
I am trying to skip a record if some conditions match in a for loop, what is the exact keyword to use that in PL/SQL. (I wanna do this without using the lables )

e.g,

DECLARE
..
i NUMBER;
BEGIN

FOR i <10
LOOP

IF i = 5
-- I want to skip the update statement if i is equal to 5 in this example
"Continue"
END IF

UPDATE ABC ....;

END LOOP;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 1 2010
Added on May 21 2007
67 comments
27,167 views