May 2020
Beginner
564 pages
14h 9m
English
You can loop through statements with LOOP, WHILE, and REPEAT:
[beginlabel:] LOOP sql statements END LOOP [endlabel];
beginlabel and endlabel are optional, and you can name them whatever makes sense for the loop. You use the label when executing an ITERATE or LEAVE statement. The SQL statements will execute once, each time LOOP executes. You can terminate a LOOP with either a LEAVE or RETURN statement. You should use a LOOP statement when you aren't certain how many times it may need to ...
Read now
Unlock full access