Created
January 11, 2014 15:39
-
-
Save anytizer/8372363 to your computer and use it in GitHub Desktop.
Drop all functions from 'your_database' 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 FUNCTION ', `SPECIFIC_NAME`, ';') drop_function | |
FROM `INFORMATION_SCHEMA`.`ROUTINES` | |
WHERE | |
`ROUTINE_SCHEMA` = 'your_database' | |
AND ROUTINE_TYPE = 'FUNCTION' | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment