8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

正文为中文,英文原文默认隐藏。点击任意中文段落即可展开 / 收起对应英文原文。

打开官方英文原文 ↗

译文由机器翻译生成,仅供理解参考;有疑问请以官方英文原文为准。

中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 100%

15.6.5 流程控制语句15.6.5 Flow Control Statements

MySQL 支持 IF, CASE, ITERATE, LEAVE LOOP, WHILE以及 REPEAT 构造,用于存储程序中的流控制。它还支持 RETURN“。MySQL supports the IF, CASE, ITERATE, LEAVE LOOP, WHILE, and REPEAT constructs for flow control within stored programs. It also supports RETURN within stored functions.

许多这些结构包含其他语句,如以下章节的语法规范所示。这些结构可以嵌套。例如,IF 语句可能包含 WHILE 循环,该循环本身包含一个 CASE 语句。Many of these constructs contain other statements, as indicated by the grammar specifications in the following sections. Such constructs may be nested. For example, an IF statement might contain a WHILE loop, which itself contains a CASE statement.

MySQL 不支持 FOR 循环。MySQL does not support FOR loops.