Difference between revisions of "DELETE TRIGGER"

From Lianjapedia
Jump to: navigation, search
Line 12: Line 12:
 
The DELETE TRIGGER command deletes a trigger from the specified table.  Triggers are used to evaluate a logical expression when certain operations are attempted.
 
The DELETE TRIGGER command deletes a trigger from the specified table.  Triggers are used to evaluate a logical expression when certain operations are attempted.
  
{| class="wikitable" width=100%
+
{| class="wikitable" width="100%"
!width=30%|Keywords||Description
+
!width="30%"|Keywords||Description
 
|-
 
|-
 
|valign="top"|database||The name of the database to which the table belongs.  The '!' character must be included between the database name and the table name.
 
|valign="top"|database||The name of the database to which the table belongs.  The '!' character must be included between the database name and the table name.

Revision as of 11:20, 30 January 2013

Purpose

Deletes a trigger from a table

Syntax

DELETE TRIGGER ON [<database>!]<table> FOR UPDATE | INSERT | DELETE

See Also

ADD TABLE, ALTER INDEX, ALTER TABLE, CONSTRAINTS, CREATE DATABASE, CREATE TRIGGER, DATA TYPES, DROP TABLE, GETENV(), INSERT, OPEN DATABASE, SELECT, SET AUTOCATALOG, SET XMLFORMAT, USE

Description

The DELETE TRIGGER command deletes a trigger from the specified table. Triggers are used to evaluate a logical expression when certain operations are attempted.

Keywords Description
database The name of the database to which the table belongs. The '!' character must be included between the database name and the table name.
table The name of the table
INSERT | DELETE Specifies the type of trigger to be deleted.

Example

USE accounts
CREATE TRIGGER ON customer FOR UPDATE AS not empty(CustName)
DELETE TRIGGER ON customer FOR UPDATE