DROP TRIGGER
The DROP TRIGGER statement removes a trigger from the database schema. Once dropped, the trigger no longer fires in response to its associated table events.Syntax
Description
DROP TRIGGER removes the named trigger from the database. The trigger must exist unless theIF EXISTS clause is specified.
Clauses
| Clause | Description |
|---|---|
IF EXISTS | Suppresses the error that would occur if the trigger does not exist. The statement is a no-op when the trigger is not found. |
schema-name | The name of the attached database containing the trigger. When omitted, Turso searches for the trigger in the main database. |
trigger-name | The name of the trigger to remove. |
Examples
Drop a Trigger
Drop a Trigger with IF EXISTS
Drop a Trigger in an Attached Database
See Also
- CREATE TRIGGER for creating triggers
- CREATE TABLE for table definitions