Temporal triggers fire repeatedly based on a specified frequency.
For example, you can use a temporal trigger to delete all clear rows (Severity = 0) from the alerts.status table that have not been modified within a certain period of time.
To create or edit a temporal trigger:
This pane lists all database, signal, and temporal triggers that are set up.
The body of a trigger contains a set of SQL commands and programming constructs that manipulate data in the ObjectServer. The body of a trigger is enclosed within the keywords BEGIN and END. Each statement, except the last one, must be separated by a semi-colon (;).
You can optionally define (declare) local variables for use within a trigger. A local variable is a placeholder for values used during the execution of the trigger. Local variable declarations within a trigger must be separated by semi-colons (;).
[ DECLARE variable_declaration;...[;] ]
BEGIN
trigger_statement_list
END;
You can use the SQL helper buttons shown to the right of the SQL editor panel to construct the SQL commands.