Sometimes you want to remove all existing triggers in your database so that you can create the new one.
You can execute the following SQL query to generate all necessary SQL queries to remove the triggers in your database.
SELECT Concat(‘DROP TRIGGER ‘, Trigger_Name, ‘;’) FROM information_schema.TRIGGERS WHERE TRIGGER_SCHEMA = ‘your_database_name’;
After that, you can export the result into the SQL file to execute those queries.
Hope it is useful for you 🙂
Revisions
- July 8, 2020 @ 15:42:06 [Current Revision] by Sharing Solution
- July 8, 2020 @ 15:41:27 by Sharing Solution
- July 8, 2020 @ 15:40:55 by Sharing Solution
No comments yet.