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

数据库系统

开发平台:

Unix_Linux

  1. <refentry id="SQL-DROPTYPE">
  2.  <refmeta>
  3.   <refentrytitle>
  4.    DROP TYPE
  5.   </refentrytitle>
  6.   <refmiscinfo>SQL - Language Statements</refmiscinfo>
  7.  </refmeta>
  8.  <refnamediv>
  9.   <refname>
  10.    DROP TYPE
  11.   </refname>
  12.   <refpurpose>
  13.    Removes a user-defined type from the system catalogs
  14.   </refpurpose>
  15.  </refnamediv>
  16.  <refsynopsisdiv>
  17.   <refsynopsisdivinfo>
  18.    <date>1998-09-22</date>
  19.   </refsynopsisdivinfo>
  20.   <synopsis>
  21. DROP TYPE <replaceable class="PARAMETER">typename</replaceable>
  22.   </synopsis>
  23.   
  24.   <refsect2 id="R2-SQL-DROPTYPE-1">
  25.    <refsect2info>
  26.     <date>1998-09-22</date>
  27.    </refsect2info>
  28.    <title>
  29.     Inputs
  30.    </title>
  31.    <para>
  32.     <variablelist>
  33.      <varlistentry>
  34.       <term><replaceable class="PARAMETER">typename</replaceable></term>
  35.       <listitem>
  36.        <para>
  37. The name of an existing type.
  38.        </para>
  39.       </listitem>
  40.      </varlistentry>
  41.     </variablelist>
  42.    </para>
  43.   </refsect2>
  44.   <refsect2 id="R2-SQL-DROPTYPE-2">
  45.    <refsect2info>
  46.     <date>1998-09-22</date>
  47.    </refsect2info>
  48.    <title>
  49.     Outputs
  50.    </title>
  51.    <para>
  52.     <variablelist>
  53.      <varlistentry>
  54.       <term><computeroutput>
  55. DROP
  56.        </computeroutput></term>
  57.       <listitem>
  58.        <para>
  59. The message returned if the command is successful.
  60.        </para>
  61.       </listitem>
  62.      </varlistentry>
  63.      <varlistentry>
  64.       <term><computeroutput>
  65. ERROR:  RemoveType: type '<replaceable class="parameter">typename</replaceable>' does not exist
  66.        </computeroutput></term>
  67.       <listitem>
  68.        <para>
  69. This message occurs if the specified type is not found.
  70.        </para>
  71.       </listitem>
  72.      </varlistentry>
  73.     </variablelist>
  74.    </para>
  75.   </refsect2>
  76.  </refsynopsisdiv>
  77.  <refsect1 id="R1-SQL-DROPTYPE-1">
  78.   <refsect1info>
  79.    <date>1998-09-22</date>
  80.   </refsect1info>
  81.   <title>
  82.    Description
  83.   </title>
  84.   <para>
  85.    <command>DROP TYPE</command> will remove a user type from the
  86.    system catalogs.
  87.   </para>
  88.   <para>
  89.    Only the owner of a type can remove it.
  90.   </para>
  91.   <refsect2 id="R2-SQL-DROPTYPE-3">
  92.    <refsect2info>
  93.     <date>1998-09-22</date>
  94.    </refsect2info>
  95.    <title>
  96.     Notes
  97.    </title>
  98.    <para>
  99.     DROP TYPE statement is a <productname>Postgres</productname>
  100.     language extension.
  101.    </para>
  102.    <para>
  103.     Refer to <command>CREATE TYPE</command> for
  104.     inforamation on how to create types.
  105.    </para>
  106.    <para>
  107.     It is the user's responsibility to remove any operators,
  108.     functions, aggregates, access methods, subtypes, and classes
  109.     that use a deleted type.
  110.    </para>
  111.   </refsect2>
  112.   <refsect2 id="R2-SQL-DROPTYPE-4">
  113.    <refsect2info>
  114.     <date>1998-09-22</date>
  115.    </refsect2info>
  116.    <title>
  117.     Bugs
  118.    </title>
  119.    <para>
  120.     If a built-in type is removed, the behavior of the backend
  121.     is unpredictable.
  122.    </para>
  123.   </refsect2>
  124.  </refsect1>
  125.   
  126.  <refsect1 id="R1-SQL-DROPTYPE-2">
  127.   <title>
  128.    Usage
  129.   </title>
  130.   <para>
  131.    To remove the <literal>box</literal> type:
  132.    <programlisting>
  133. DROP TYPE box;
  134.    </programlisting>
  135.   </para>
  136.  </refsect1>
  137.  <refsect1 id="R1-SQL-DROPTYPE-3">
  138.   <title>
  139.    Compatibility
  140.   </title>
  141.   <para>
  142.   </para>
  143.   
  144.   <refsect2 id="R2-SQL-DROPTYPE-5">
  145.    <refsect2info>
  146.     <date>1998-09-22</date>
  147.    </refsect2info>
  148.    <title>
  149.     SQL3
  150.    </title>
  151.    <para>
  152.     DROP TYPE is a <acronym>SQL3</acronym> statement.
  153.    </para>
  154.   </refsect2>
  155.  </refsect1>
  156. </refentry>
  157. <!-- Keep this comment at the end of the file
  158. Local variables:
  159. mode: sgml
  160. sgml-omittag:nil
  161. sgml-shorttag:t
  162. sgml-minimize-attributes:nil
  163. sgml-always-quote-attributes:t
  164. sgml-indent-step:1
  165. sgml-indent-data:t
  166. sgml-parent-document:nil
  167. sgml-default-dtd-file:"../reference.ced"
  168. sgml-exposed-tags:nil
  169. sgml-local-catalogs:"/usr/lib/sgml/catalog"
  170. sgml-local-ecat-files:nil
  171. End:
  172. -->