Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

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;

Source by www.mysqltutorial.org #
 
PREVIOUS NEXT
Tagged: #leave #mysql
ADD COMMENT
Topic
Name
1+8 =