Created
September 28, 2017 07:39
-
-
Save neewbee/27a96f0dc035940e32b120a57bf4b962 to your computer and use it in GitHub Desktop.
batch delete database
This file contains hidden or 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 DATABASE `', SCHEMA_NAME, '`;') | |
| FROM `information_schema`.`SCHEMATA` | |
| WHERE SCHEMA_NAME LIKE 'cms_%'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment