Created
January 15, 2014 08:54
-
-
Save simongcc/8432919 to your computer and use it in GitHub Desktop.
Common MySQL command for development
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 desired table and create "drop table" command for the them | |
SELECT CONCAT( 'DROP TABLE ', GROUP_CONCAT(table_name) , ';' ) | |
AS statement FROM information_schema.tables WHERE table_schema = 'SCHEMA_NAME' and table_name LIKE 'SOMETHING%'; | |
Then copy and paste the result to use. | |
### | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment