∟Variables, Loops and Cursors Used in Stored Procedures
This chapter provides tutorial notes on store procedures. Topics include declaring variables and assigning values to variables; IF statements; LOOP, REPEAT and WHILE statements; ITERATE and LEAVE statements; Using cursors to loop through output rows of SELECT statements.