Created
May 4, 2018 01:06
-
-
Save ericjsilva/8f977811c5e5a7a2dbbb14a705790b25 to your computer and use it in GitHub Desktop.
Create MySQL Optimize statements
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('OPTIMIZE TABLE ',TABLE_NAME, ';') FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='my_schema'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment