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

数据库系统

开发平台:

Unix_Linux

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