SELECT CONCAT('ALTER TABLE `', TABLE_SCHEMA, '`.`', TABLE_NAME, '` CHANGE `', COLUMN_NAME, '` `', COLUMN_NAME, '` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;') FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = 'MpTvDb' AND `COLUMN_KEY` != '' AND `DATA_TYPE` = 'varchar' AND `CHARACTER_MAXIMUM_LENGTH` > 255;