SQLite Maestro online Help
Prev | Return to chapter overview | Next |
Create Trigger Wizard

Create Trigger Wizard guides you through the process of creating of a new table trigger.
The basic principles of Create Object Wizards in SQLite Maestro are covered by the corresponding topic. See below to find the description of wizard steps that are unique to the current object.
Specifying trigger properties
To define a new trigger, you need to set itsType (Before, After). This option determines whether the function is called before or after the event.
Event
One of Insert, Update, or Delete; this specifies the event that will fire the trigger.
Field list
This is available when Update of option is selected in Event select. You can specify which fields are to be updated to cause the trigger being fired.
When expression
If you supply when expression, the SQL statements specified as trigger steps are only executed for those rows for which the WHEN clause is true. If no WHEN clause is supplied, the SQL statements are executed for all rows.
Specifying trigger definition
Here you can specify the trigger definition. Specify the trigger steps to be executed when the trigger fires. Trigger steps can be SQL statements (update, select, insert, or delete). The step is optional: you can do it later using a non-modal editor.
Prev | Return to chapter overview | Next |