END THE CURSTABLE LOOP MYSQL code example
Example: what does leave do in mysql
-- MySQL
-- Leave statement is used to immediately exit the loop.
[label]: LOOP
...
-- terminate the loop
IF condition THEN
LEAVE [label];
END IF;
...
END LOOP;