Created
May 12, 2014 16:53
-
-
Save gaulatti/9bbfff51a9188dcd1b8c to your computer and use it in GitHub Desktop.
Select Tables for drop in MySQL
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 TABLE IF EXISTS ', table_name, ';') | |
FROM information_schema.tables | |
WHERE table_schema = 'MyDatabaseName'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment