Что уходит в 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;
HmongsterMoua