HeidiSQL 10.3.0.5906 - Mysql V 5.7.27
when using in HeidiSQL to function copy Table,
If a column ENUM have a default value, this is not wrapped.
CREATE TABLE `tmp`.`tttt_copy` (
`aaa` ENUM('Y','N') NULL DEFAULT Y COLLATE 'utf8_general_ci'
)
COLLATE 'utf8_general_ci' ENGINE=MyISAM ROW_FORMAT=Fixed;
/* Errore SQL (1064): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Y COLLATE 'utf8_general_ci'
)
COLLATE 'utf8_general_ci' ENGINE=MyISAM ROW_FOR' at line 2 */
correct is DEFAULT 'Y' COLLATE not DEFAULT Y COLLATE
Tks W:-}