Seth Woolley's Man Viewer

drop_trigger(7) - DROP TRIGGER - remove a trigger - man 7 drop_trigger

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

DROP TRIGGER(7)                  SQL Commands                  DROP TRIGGER(7)



NAME
       DROP TRIGGER - remove a trigger


SYNOPSIS
       DROP TRIGGER name ON table [ CASCADE | RESTRICT ]


DESCRIPTION
       DROP  TRIGGER  will  remove  an existing trigger definition. To execute
       this command, the current user must be the owner of the table for which
       the trigger is defined.

PARAMETERS
       name   The name of the trigger to remove.

       table  The  name (optionally schema-qualified) of a table for which the
              trigger is defined.

       CASCADE
              Automatically drop objects that depend on the trigger.

       RESTRICT
              Refuse to drop the trigger if(3,n) any objects depend on it. This  is
              the default.

EXAMPLES
       Destroy the trigger if_dist_exists on the table films:

       DROP TRIGGER if_dist_exists ON films;


COMPATIBILITY
       The  DROP  TRIGGER statement in(1,8) PostgreSQL is incompatible with the SQL
       standard. In the SQL standard, trigger names are not local  to  tables,
       so the command is simply DROP TRIGGER name.

SEE ALSO
       CREATE TRIGGER [create_trigger(7)]




SQL - Language Statements         2003-11-02                   DROP TRIGGER(7)

References for this manual (incoming links)