I fouund : Some int,decimal field lose COMMENT when have default value.
I use mysql/mariadb. os: windows 7.0 heidisql up to 5191 all version
CREATE TABLE tmp
(
Teaching_ID
INT(11) NOT NULL DEFAULT '',
Depart_ID
INT(11) NOT NULL DEFAULT '',
TeacherName
VARCHAR(10) NOT NULL DEFAULT '-' COMMENT 'cccccccccc',
TeacherCode
VARCHAR(15) NOT NULL DEFAULT '-' COMMENT 'dddddddddd',
ClassName
VARCHAR(20) NOT NULL DEFAULT '-' COMMENT 'eeeeeeee',
CourseName
VARCHAR(30) NOT NULL DEFAULT '-' COMMENT 'fffffffff',
s31
DECIMAL(14,4) NOT NULL DEFAULT '',
s32
DECIMAL(14,4) NOT NULL DEFAULT '',
s0
DECIMAL(14,4) NOT NULL DEFAULT '',
s1
DECIMAL(14,4) NOT NULL DEFAULT '',
s2
INT(1) NOT NULL DEFAULT ''
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB;
modify above table in heidisql(all version), set default value not null, save, Some int,decimal field lose COMMENT when have default value.