
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
How can we destroy a trigger?
We can destroy a trigger in two ways −
Dropping a trigger explicitly
With the help of the DROP statement, we can destroy a trigger explicitly. It can be understood with the help of the following example −
mysql> DROP Trigger before_inser_studentage1; Query OK, 0 rows affected (0.05 sec)
Dropping a trigger implicitly
A trigger will be destroyed implicitly if the table with which it is associated is destroyed or if the database which it is associated is destroyed.
- Related Articles
- How can we create and use a MySQL trigger?
- How Can Hackers Destroy Cloud Server Databases?
- How can I trigger a JavaScript click event?
- How can we create multiple MySQL triggers for the same trigger event and action time?
- How can MySQL handle the errors during trigger execution?
- What happens with the trigger when we will drop the table having that trigger?
- How can I trigger an onchange event manually in javascript?
- Acid can destroy all the metal or steel. But in the lab, we keep some acid in the beaker, then why the beaker won't destroy or melt?
- How to destroy threads in C#?
- Can re-declaring a variable destroy the value of that variable in JavaScript?
- Why do we need to change the delimiter for creating a trigger?
- How to destroy an object in Python?
- Bootstrap .popover("destroy") method
- Bootstrap .tooltip("destroy") method
- How we can we make a diagram of electric bell ?

Advertisements