close.sgml
上传用户:blenddy
上传日期:2007-01-07
资源大小:6495k
文件大小:3k
源码类别:

数据库系统

开发平台:

Unix_Linux

  1. <refentry id="SQL-CLOSE">
  2.  <refmeta>
  3.   <refentrytitle>
  4.    CLOSE
  5.   </refentrytitle>
  6.   <refmiscinfo>SQL - Language Statements</refmiscinfo>
  7.  </refmeta>
  8.  <refnamediv>
  9.   <refname>
  10.    CLOSE
  11.   </refname>
  12.   <refpurpose>
  13.    Close a cursor
  14.   </refpurpose>
  15.  </refnamediv>
  16.  <refsynopsisdiv>
  17.   <refsynopsisdivinfo>
  18.    <date>1998-09-08</date>
  19.   </refsynopsisdivinfo>
  20.   <synopsis>
  21. CLOSE <replaceable class="PARAMETER">cursor</replaceable>
  22.   </synopsis>
  23.   
  24.   <refsect2 id="R2-SQL-CLOSE-1">
  25.    <refsect2info>
  26.     <date>1998-09-08</date>
  27.    </refsect2info>
  28.    <title>
  29.     Inputs
  30.    </title>
  31.    <para>
  32.     <variablelist>
  33.      <varlistentry>
  34.       <term><replaceable class="PARAMETER">cursor</replaceable></term>
  35.       <listitem>
  36.        <para>
  37. The name of an open cursor to close.
  38.        </para>
  39.       </listitem>
  40.      </varlistentry>
  41.     </variablelist>
  42.    </para>
  43.   </refsect2>
  44.   
  45.   <refsect2 id="R2-SQL-CLOSE-2">
  46.    <refsect2info>
  47.     <date>1998-09-08</date>
  48.    </refsect2info>
  49.    <title>
  50.     Outputs
  51.    </title>
  52.    <para>
  53.     <variablelist>
  54.      <varlistentry>
  55.       <term><computeroutput>
  56. CLOSE
  57.        </computeroutput></term>
  58.       <listitem>
  59.        <para>
  60. Message returned if the cursor is successfully closed.
  61.        </para>
  62.       </listitem>
  63.      </varlistentry>
  64.      <varlistentry>
  65.       <term><computeroutput>
  66. NOTICE PerformPortalClose: portal "<replaceable class="PARAMETER">cursor</replaceable>" not found
  67.        </computeroutput></term>
  68.       <listitem>
  69.        <para>
  70. This warning is given if
  71. <replaceable class="PARAMETER">cursor</replaceable> is not
  72. declared or has already been closed.
  73.        </para>
  74.       </listitem>
  75.      </varlistentry>
  76.     </variablelist>
  77.    </para>
  78.   </refsect2>
  79.  </refsynopsisdiv>
  80.  <refsect1 id="R1-SQL-CLOSE-1">
  81.   <refsect1info>
  82.    <date>1998-09-08</date>
  83.   </refsect1info>
  84.   <title>
  85.    Description
  86.   </title>
  87.   <para>
  88.    <command>CLOSE</command> frees the resources associated with an open cursor.
  89.    After the cursor is closed, no subsequent operations
  90.    are allowed on it. A cursor should be closed when it is
  91.    no longer needed.
  92.   </para>
  93.   <para>
  94.    An implicit close is executed for every open cursor when a
  95.    transaction is terminated by <command>COMMIT</command>
  96.  or <command>ROLLBACK</command>.
  97.   </para>
  98.   
  99.   <refsect2 id="R2-SQL-CLOSE-3">
  100.    <refsect2info>
  101.     <date>1998-09-08</date>
  102.    </refsect2info>
  103.    <title>
  104.     Notes
  105.    </title>
  106.    <para>
  107.     <productname>Postgres</productname> does not have
  108.     an explicit <command>OPEN</command> cursor statement;
  109.     a cursor is considered open when it is declared.
  110.     Use the <command>DECLARE</command> statement to declare a cursor.
  111.    </para>
  112.   </refsect2>
  113.  </refsect1>
  114.  <refsect1 id="R1-SQL-CLOSE-2">
  115.   <title>
  116.    Usage
  117.   </title>
  118.   <para>
  119.    Close the cursor liahona:
  120.   </para>
  121.   <programlisting>
  122. CLOSE liahona;
  123.   </programlisting>
  124.  </refsect1>
  125.  
  126.  <refsect1 id="R1-SQL-CLOSE-3">
  127.   <title>
  128.    Compatibility
  129.   </title>
  130.   <para>
  131.   </para>
  132.   
  133.   <refsect2 id="R2-SQL-CLOSE-4">
  134.    <refsect2info>
  135.     <date>1998-09-08</date>
  136.    </refsect2info>
  137.    <title>
  138.     SQL92
  139.    </title>
  140.    <para>
  141.     <command>CLOSE</command> is fully compatible with SQL92.
  142.    </para>
  143.   </refsect2>
  144.  </refsect1>
  145. </refentry>
  146. <!-- Keep this comment at the end of the file
  147. Local variables:
  148. mode: sgml
  149. sgml-omittag:t
  150. sgml-shorttag:t
  151. sgml-minimize-attributes:nil
  152. sgml-always-quote-attributes:t
  153. sgml-indent-step:1
  154. sgml-indent-data:t
  155. sgml-parent-document:nil
  156. sgml-default-dtd-file:"../reference.ced"
  157. sgml-exposed-tags:nil
  158. sgml-local-catalogs:"/usr/lib/sgml/catalog"
  159. sgml-local-ecat-files:nil
  160. End:
  161. -->