Figure 15-1 Trigger Event and Triggered Action
The CREATE TRIGGER statement consists of clauses that perform the following actions:
You can create a trigger using DB-Access, the SQL Editor, or one of the SQL APIs. This section describes the CREATE TRIGGER statement as you would enter it using the interactive Query-language option in DB-Access. In an SQL API, you simply precede the statement with the symbol or keywords that identify it as an embedded statement. Assigning a Trigger Name The trigger name identifies the trigger. It follows the words CREATE TRIGGER in the statement. It can be up to 18 characters long, beginning with a letter and consisting of letters, the digits 0 to 9, and the underscore. In the following example, the portion of the CREATE TRIGGER statement that is shown assigns the name upqty to the trigger: