mysql leave procedure 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;