<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h3 class="title">
      <a name="flow-control-statements">
      </a>
      15.6.5 Flow Control Statements
     </h3>
    </div>
   </div>
  </div>
  <div class="toc">
   <dl class="toc">
    <dt>
     <span class="section">
      <a href="case.html">
       15.6.5.1 CASE Statement
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="if.html">
       15.6.5.2 IF Statement
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="iterate.html">
       15.6.5.3 ITERATE Statement
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="leave.html">
       15.6.5.4 LEAVE Statement
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="loop.html">
       15.6.5.5 LOOP Statement
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="repeat.html">
       15.6.5.6 REPEAT Statement
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="return.html">
       15.6.5.7 RETURN Statement
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="while.html">
       15.6.5.8 WHILE Statement
      </a>
     </span>
    </dt>
   </dl>
  </div>
  <p>
   MySQL supports the
   <a class="link" href="if.html" title="15.6.5.2 IF Statement">
    <code class="literal">
     IF
    </code>
   </a>
   ,
   <a class="link" href="case.html" title="15.6.5.1 CASE Statement">
    <code class="literal">
     CASE
    </code>
   </a>
   ,
   <a class="link" href="iterate.html" title="15.6.5.3 ITERATE Statement">
    <code class="literal">
     ITERATE
    </code>
   </a>
   ,
   <a class="link" href="leave.html" title="15.6.5.4 LEAVE Statement">
    <code class="literal">
     LEAVE
    </code>
   </a>
   <a class="link" href="loop.html" title="15.6.5.5 LOOP Statement">
    <code class="literal">
     LOOP
    </code>
   </a>
   ,
   <a class="link" href="while.html" title="15.6.5.8 WHILE Statement">
    <code class="literal">
     WHILE
    </code>
   </a>
   , and
   <a class="link" href="repeat.html" title="15.6.5.6 REPEAT Statement">
    <code class="literal">
     REPEAT
    </code>
   </a>
   constructs for flow control
      within stored programs. It also supports
   <a class="link" href="return.html" title="15.6.5.7 RETURN Statement">
    <code class="literal">
     RETURN
    </code>
   </a>
   within stored functions.
  </p>
  <p>
   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
   <a class="link" href="if.html" title="15.6.5.2 IF Statement">
    <code class="literal">
     IF
    </code>
   </a>
   statement might contain a
   <a class="link" href="while.html" title="15.6.5.8 WHILE Statement">
    <code class="literal">
     WHILE
    </code>
   </a>
   loop, which itself contains a
   <a class="link" href="case.html" title="15.6.5.1 CASE Statement">
    <code class="literal">
     CASE
    </code>
   </a>
   statement.
  </p>
  <p>
   MySQL does not support
   <code class="literal">
    FOR
   </code>
   loops.
  </p>
 </div>
 <br/>
</div>
