Created
August 3, 2014 07:40
-
-
Save anytizer/607ab212652ad5114c83 to your computer and use it in GitHub Desktop.
Drop backup tables (that started with an underscore _).
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 `', TABLE_NAME, '`;') DROP_QUERY FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME LIKE '\_%'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment