Optional: Type a SQL identifier. Do not begin the schema name with the string 'SYS' unless the name is SYSADM. If you do not specify a schema name, DB2 qualifies the trigger name with an implicit schema name.
Click on the Browse button to view a list of objects.
Specify the name of the trigger. DB2 implicitly or explicitly qualifies this value with a schema. The name, including the qualifying schema, must not identify an existing trigger or trigger package at the current server.
Specify the name of a authorization ID that owns the table specified in the Table name field.
Click on the Browse button to view a list of objects.
Specify the name of a base table at the current server. The action that you specify as the "Operation that causes the trigger to be executed" occurs on this table, the triggered action executes. Do not type the name of a temporary table, an alias, a synonym, or a catalog table.
Click on the Browse button to view a list of objects.
Defines this trigger as a before trigger. DB2 executes the triggered action before applying any changes caused by the triggering SQL statement.
Defines this trigger as an after trigger. DB2 executes the triggered action after applying any changes caused by the triggering SQL statement.
INSERT operations cause the trigger to execute.
DELETE operations cause the trigger to execute.
UPDATE operations on any column cause the trigger to execute.
UPDATE operations on the specified columns cause the trigger to execute. If you have selected a table, this option populates the Available columns list box.
If you select Update of column then you must select one or more columns from the Available columns list box.
If you select Update of column then you must select one or more columns from the Available columns list box.
Moves the highlighted column or columns to the Selected columns list box.
Moves all columns to the Selected columns list box.
Moves the highlighted column or columns to the Available columns list box.
Moves all columns to the Available columns list box.
Optional: Type a comment for the trigger.
Type a name to identify the state of the row prior to the triggering SQL operation.
This field is available if you select the Delete radio button or either Update radio button in the Trigger page.
Type a name to identify the state of the row as modified by any SET statement in any before triggers that have already been activated by the triggering SQL operation.
If you select the After radio button and the Insert or either Update radio button in the Trigger page, this field is available.
Type a name to identify the temporary table that stores the state of the entire set of rows prior to the application of changes from the triggering operation.
This field is available only if you select the After radio button and the Delete or either Update radio button in the Trigger page.
Type a name to identify the temporary table that stores the state of the entire set of rows as modified by any SET statement in any before triggers that have already been activated by the triggering SQL operation. This field is available only if you select the After radio button and the Insert or either Update radio button in the Trigger page.
Specifies that the triggered action occurs every time that the triggering operation acts on a row in the associated table.
Specifies that the action occurs one time after the operation acts on all rows. This radio button is available only if you select the After radio button in the Trigger page.
Type the triggered SQL statements. DB2 executes the SQL statements in the order that they are entered. If the SQL contains a single statement, you do not need the BEGIN ATOMIC and END keywords. If you type multiple SQL statements between the BEGIN ATOMIC and END keywords, then you must end each statement with a semicolon(;) or an exclamation point (!).
Produces four possible results:
Erases the contents of the text box.
Opens a window to help you build an SQL statement that will be used as the triggered action. You can invoke SQLAssist multiple times to append additional SQL statements into the Triggered action field.
Submits the data in the window and closes the window. Available when the required fields are complete.
Displays the SQL statements that would be generated by your choices in this window. Available when the required fields are complete.
Submits the data in the window and keeps the window open for further input.
Closes this window.