Created
November 30, 2013 06:51
-
-
Save anytizer/7716152 to your computer and use it in GitHub Desktop.
SQL to drop all triggers from your selected database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT CONCAT('DROP TRIGGER `', trigger_name, '`;') FROM information_schema.triggers WHERE trigger_schema = 'DATABASE_NAME'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment