Difference between revisions of "DELETE TRIGGER"

From Recital Documentation Wiki
Jump to: navigation, search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=DELETE TRIGGER=
 
 
 
==Class==
 
SQL Applications
 
 
 
 
==Purpose==
 
==Purpose==
 
Deletes a trigger from a table
 
Deletes a trigger from a table
Line 16: Line 9:
  
 
==See Also==
 
==See Also==
[[ADD TABLE]], [[ALTER INDEX]], [[ALTER TABLE]], [[CREATE DATABASE]], [[DB_DATADIR]], [[DROP TABLE]], [[GETENV()]], [[SQL INSERT|INSERT]], [[OPEN DATABASE]], [[SQL SELECT|SELECT]], [[SQL Constraints|CONSTRAINTS]], [[SQL Data Types|DATA TYPES]], [[SET AUTOCATALOG]], [[SET XMLFORMAT]], [[SQL USE|USE]]  
+
[[ADD TABLE]], [[ALTER INDEX]], [[ALTER TABLE]], [[SQL Constraints|CONSTRAINTS]], [[CREATE DATABASE]], [[CREATE TRIGGER]], [[SQL Data Types|DATA TYPES]], [[DB_DATADIR]], [[DROP TABLE]], [[GETENV()]], [[SQL INSERT|INSERT]], [[OPEN DATABASE]], [[SQL SELECT|SELECT]], [[SET AUTOCATALOG]], [[SET XMLFORMAT]], [[SQL USE|USE]]  
  
  
Line 38: Line 31:
 
<code lang="recital">
 
<code lang="recital">
 
USE accounts
 
USE accounts
CREATE TRIGGER ON customer FOR UPDATE AS .not. empty(CustName)
+
CREATE TRIGGER ON customer FOR UPDATE AS not empty(CustName)
 
DELETE TRIGGER ON customer FOR UPDATE
 
DELETE TRIGGER ON customer FOR UPDATE
 
</code>
 
</code>
Line 44: Line 37:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:SQL]]
 
[[Category:SQL]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Triggers]]

Latest revision as of 15:46, 10 November 2009

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, DB_DATADIR, 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. Databases in Recital are implemented as directories containing files that correspond to the tables and associated files in the database. Operating System file protection can be applied individually to the files for added security. The directory is a sub-directory of the Recital data directory. The environment variable / symbol DB_DATADIR points to the current Recital data directory and can be queried using the GETENV() function. Files from other directories can be added to the database using the ADD TABLE command or via the database catalog and SET AUTOCATALOG functionality. 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


Products

Recital Server, Recital