what does leave do in mysql
snippet in sql

what does leave do in mysql

user1748

-- MySQL

-- Leave statement is used to immediately exit the loop. 
[label]: LOOP
    ...
    -- terminate the loop
    IF condition THEN
        LEAVE [label];
    END IF;
    ...
END LOOP;