testLoop : LOOP
SET s = CONCAT(s, 'i=', i, ' | ');
SET i = i + 1;
IF i >= 4 THEN
LEAVE testLoop;
ELSEIF < 4 THEN
Keep looping code
ELSE
Hackers put your code here
END IF;
END LOOP testLoop;
This mimics the old Basic JUMP statement and creates cul-de-sac’s in the code where malicious code can live, You should not use these
I disagree with your instructor, you should always use these