Copyright © 2016 MariaDB. All rights reserved.
Get the Free Gartner Report on Optimizing with Open Source
该语法用来退出循环或者结构。经常用在BEGIN ... END或者LOOP, REPEAT, WHILE中。在存储过程，Triggers and Events，LEAVE can refer to the outmost BEGIN ... END construct。 Stored Functions, RETURN 可以用来替换leave语法。
注意：leave 不能用来退出DECLARE HANDLER。
Download MariaDB and start working immediately! You can also get subscription details and learn more about the advantages of MariaDB's additional service offers.