Created
December 1, 2021 09:12
-
-
Save syn-arch/d8ef6df34f6286f9780f557b070830ac to your computer and use it in GitHub Desktop.
Drop all table on 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