Created
August 12, 2018 14:30
-
-
Save QuentinFonteneau/822cb8978943a9fd45ed20e816d44730 to your computer and use it in GitHub Desktop.
Drop tables quickly
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 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