Define Teradata Table Triggers

A trigger is a stored procedure that executes in response to an event. For example, a trigger can be executed when a row in a table is inserted, updated, or deleted. The trigger tells the DBMS how to process the SQL INSERT, UPDATE, or Delete commands to enforce business rules. You can use the Trigger editor to define the stored procedures that exist for the selected tablein a Teradata physical model.

To define Teradata table triggers

  1. Select the table you want to work with, then click Triggers, Table on the Database menu.

    The Table tablename Trigger Editor opens for the table you selected.

  2. Click New <New> icon in property editors on the toolbar.

    A new trigger is added. Work with the following options:

  3. Work with the following fields on the General tab:
  4. Work with the other tabs in the editor to access additional design features, for example:
  5. (Optional) Click the Comment tab and enter any comments you want associated with the trigger.
  6. (Optional) Click the UDP tab to work with user-defined properties for the trigger.
  7. Click Close.

    The Table Trigger Editor closes.

More information:

Edit Code in a Teradata Property Editor

View Expanded Code in a Property Editor

Add a Comment in a Property Editor

Add a UDP in a Physical Property Editor


Copyright © 2009 CA. All rights reserved. Email CA about this topic