What does leave do in mysql

This article is tagged with: What does leave do in mysql and mysql

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;

This article is tagged with: What does leave do in mysql and mysql