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

数据库系统

开发平台:

Unix_Linux

  1. <refentry id="SQL-DROPAGGREGATE">
  2.  <refmeta>
  3.   <refentrytitle>
  4.    DROP AGGREGATE
  5.   </refentrytitle>
  6.   <refmiscinfo>SQL - Language Statements</refmiscinfo>
  7.  </refmeta>
  8.  <refnamediv>
  9.   <refname>
  10.    DROP AGGREGATE
  11.   </refname>
  12.   <refpurpose>
  13.    Removes the definition of an aggregate function
  14.   </refpurpose>
  15.  </refnamediv>
  16.  <refsynopsisdiv>
  17.   <refsynopsisdivinfo>
  18.    <date>1998-04-15</date>
  19.   </refsynopsisdivinfo>
  20.   <synopsis>
  21. DROP AGGREGATE <replaceable class="PARAMETER">name</replaceable> <replaceable class="PARAMETER">type</replaceable>
  22.   </synopsis>
  23.   <refsect2 id="R2-SQL-DROPAGGREGATE-1">
  24.    <refsect2info>
  25.     <date>1998-04-15</date>
  26.    </refsect2info>
  27.    <title>
  28.     Inputs
  29.    </title>
  30.    <para>
  31.     <variablelist>
  32.      <varlistentry>
  33.       <term><replaceable class="parameter">name</replaceable></term>
  34.       <listitem>
  35.        <para>
  36. The name of an existing aggregate function.
  37.        </para>
  38.       </listitem>
  39.      </varlistentry>
  40.      <varlistentry>
  41.       <term><replaceable class="parameter">type</replaceable></term>
  42.       <listitem>
  43.        <para>
  44. The type of an existing aggregate function.
  45. (Refer to the <citetitle>PostgreSQL User's Guide</citetitle> for
  46. further information about data types).
  47. <comment>This should become a cross-reference rather than a
  48.  hard-coded chapter number</comment>
  49.        </para>
  50.       </listitem>
  51.      </varlistentry>
  52.     </variablelist>
  53.    </para>
  54.   </refsect2>
  55.   <refsect2 id="R2-SQL-DROPAGGREGATE-2">
  56.    <refsect2info>
  57.     <date>1998-04-15</date>
  58.    </refsect2info>
  59.    <title>
  60.     Outputs
  61.    </title>
  62.    <para>
  63.     <variablelist>
  64.      <varlistentry>
  65.       <term><computeroutput>
  66. DROP
  67.        </computeroutput></term>
  68.       <listitem>
  69.        <para>
  70. Message returned if the command is successful.
  71.        </para>
  72.       </listitem>
  73.      </varlistentry>
  74.      <varlistentry>
  75.       <term><computeroutput>
  76. WARN RemoveAggregate: aggregate '<replaceable class="parameter">agg</replaceable>' for '<replaceable class="parameter">type</replaceable>' does not exist
  77.        </computeroutput></term>
  78.       <listitem>
  79.        <para>
  80. This message occurs if the aggregate function specified does not
  81. exist in the database.
  82.        </para>
  83.       </listitem>
  84.      </varlistentry>
  85.     </variablelist>
  86.    </para>
  87.   </refsect2>
  88.  </refsynopsisdiv>
  89.  <refsect1 id="R1-SQL-DROPAGGREGATE-1">
  90.   <refsect1info>
  91.    <date>1998-04-15</date>
  92.   </refsect1info>
  93.   <title>
  94.    Description
  95.   </title>
  96.   <para>
  97.    <command>DROP AGGREGATE</command> will remove all references to an existing
  98.    aggregate definition. To execute this command the current
  99.    user must be the owner of the aggregate.
  100.   </para>
  101.   <refsect2 id="R2-SQL-DROPAGGREGATE-3">
  102.    <refsect2info>
  103.     <date>1998-04-15</date>
  104.    </refsect2info>
  105.    <title>
  106.     Notes
  107.    </title>
  108.    <para>
  109.     The <command>DROP AGGREGATE</command> statement is a
  110.     <productname>Postgres</productname>
  111.     language extension.
  112.    </para>
  113.    <para>
  114.     Refer to the <command>CREATE AGGREGATE</command> statement to
  115.     create aggregate functions.
  116.    </para>
  117.   </refsect2>
  118.  </refsect1>
  119.  <refsect1 id="R1-SQL-DROPAGGREGATE-2">
  120.   <title>
  121.    Usage
  122.   </title>
  123.   <para>
  124.    To remove the <literal>myavg</literal> aggregate for type
  125.    <literal>int4</literal>:
  126.   </para>
  127.   <programlisting>
  128. DROP AGGREGATE myavg int4;
  129.   </programlisting>
  130.  </refsect1>
  131.  <refsect1 id="R1-SQL-DROPAGGREGATE-3">
  132.   <title>
  133.    Compatibility
  134.   </title>
  135.   <para>
  136.   </para>
  137.   <refsect2 id="R2-SQL-DROPAGGREGATE-4">
  138.    <refsect2info>
  139.     <date>1998-04-15</date>
  140.    </refsect2info>
  141.    <title>
  142.     SQL92
  143.    </title>
  144.    <para>
  145.     There is no DROP AGGREGATE statement in <acronym>SQL92</acronym>.
  146.    </para>
  147.   </refsect2>
  148.  </refsect1>
  149. </refentry>
  150. <!-- Keep this comment at the end of the file
  151. Local variables:
  152. mode: sgml
  153. sgml-omittag:nil
  154. sgml-shorttag:t
  155. sgml-minimize-attributes:nil
  156. sgml-always-quote-attributes:t
  157. sgml-indent-step:1
  158. sgml-indent-data:t
  159. sgml-parent-document:nil
  160. sgml-default-dtd-file:"../reference.ced"
  161. sgml-exposed-tags:nil
  162. sgml-local-catalogs:"/usr/lib/sgml/catalog"
  163. sgml-local-ecat-files:nil
  164. End:
  165. -->