DROP TRIGGER deletes a trigger.
Only the owner of a trigger and system administrators can run the DROP TRIGGER statement.
1 | DROP TRIGGER [ IF EXISTS ] trigger_name ON table_name [ CASCADE | RESTRICT ]; |
Sends a notice instead of an error if the specified trigger does not exist.
Specifies the name of the trigger to be deleted.
Value range: an existing trigger
Specifies the name of the table where the trigger to be deleted is located.
Value range: an existing table having a trigger
Delete the trigger insert_trigger.
1 | DROP TRIGGER insert_trigger ON test_trigger_src_tbl; |