Created
August 8, 2012 13:56
-
-
Save kathangeorg/3295201 to your computer and use it in GitHub Desktop.
MySQL ALTER a bunch of TABLES
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("alter table ",TABLE_SCHEMA,".",TABLE_NAME," CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;") | |
from information_schema.TABLES where TABLE_SCHEMA="SWZM2"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment