To add an SQL trigger to a table:
Note:
After an SQL trigger has been created, the SQL statements cannot be changed. Also, no compile listing is generated when the trigger is created. If logic errors are later detected, the trigger must be deleted and redefined to change the SQL code. You should consider creating and testing your SQL statements elsewhere before creating them as an SQL trigger.