<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h4 class="title">
      <a name="close">
      </a>
      15.6.6.1 Cursor CLOSE Statement
     </h4>
    </div>
   </div>
  </div>
  <a class="indexterm" name="idm46045176160800">
  </a>
  <div class="copytoclipboard-wrapper">
   <pre class="programlisting one-line language-sql"><div class="docs-select-all right" id="sa98634634"><div class="copy-help left">Press ⌘+C to copy</div> <div class="right"><button class="clipboard-btn" title="Copy to Clipboard"><span class="icon-clipboard"></span></button></div></div><code class="language-sql"><span class="token keyword">CLOSE</span> <span class="token keyword"><em class="replaceable">cursor_name</em></span></code></pre>
  </div>
  <p>
   This statement closes a previously opened cursor. For an
        example, see
   <a class="xref" href="cursors.html" title="15.6.6 Cursors">
    Section 15.6.6, “Cursors”
   </a>
   .
  </p>
  <p>
   An error occurs if the cursor is not open.
  </p>
  <p>
   If not closed explicitly, a cursor is closed at the end of the
   <a class="link" href="begin-end.html" title="15.6.1 BEGIN ... END Compound Statement">
    <code class="literal">
     BEGIN ...
        END
    </code>
   </a>
   block in which it was declared.
  </p>
 </div>
 <br/>
</div>
