10bet网址
MySQL 5.7 Reference Manual
Related Documentation Download this Manual Excerpts from this Manual

13.6.5 Flow Control Statements

MySQL supports theIF,CASE,ITERATE,LEAVELOOP,WHILE, andREPEATconstructs for flow control within stored programs. It also supportsRETURNwithin stored functions.

Many of these constructs contain other statements, as indicated by the grammar specifications in the following sections. Such constructs may be nested. For example, anIFstatement might contain aWHILEloop, which itself contains aCASEstatement.

MySQL does not supportFOR循环。