- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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.
Advertisements