HELP TRIGGER Examples | Teradata Vantage - HELP TRIGGER Examples - Teradata Vantage - Analytics Database

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-11-22
dita:mapPath
jco1628111346878.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
mdr1472255012272
lifecycle
latest
Product Category
Teradata Vantage™

Example: HELP TRIGGER for a Table Key

The following example reports the information for a trigger that updates a table key.

     HELP TRIGGER UpdateForKey;

Result:

     *** Help information returned. 1 row.
     *** Total elapsed time was 1 second.
             Name         UpdateForKey
             ----------   --------------
             ActionTime   B
    Decimal Order Value   10
     Creation TimeStamp   2003-02-12 15:55:02
                  Event   I
                   Kind   S
                Enabled   Y
                Comment   ?
         ValidTime Type   C
   TransactionTime Type   C

Example: HELP TRIGGER for a Bitemporal Table

Assume you have created the following row trigger definition for a bitemporal table.

     CREATE TRIGGER db1.trig_1 
       AFTER CURRENT VALIDTIME INSERT ON db1.table_1 
       REFERENCING NEW ROW AS NewRow_1 
       FOR EACH ROW 
       BEGIN ATOMIC
         (ABORT 'aborted' WHERE NewRow_1.c2 > 100;) 
       END;

A HELP TRIGGER request on this trigger reports the following information for trig1.

     HELP TRIGGER db1.trig1;

Result:

                        Name trig1
                   ActionTime A
          Decimal Order Value 32,767
           Creation TimeStamp 2010-12-09 23:11:57
                        Event I
                         Kind R
                      Enabled Y
                      Comment ?
               ValidTime Type C
         TransactionTime Type C