13.1.20.7 Silent Column Specification Changes静默列规范更改

In some cases, MySQL silently changes column specifications from those given in a CREATE TABLE or ALTER TABLE statement. 在某些情况下,MySQL会以静默方式更改CREATE TABLEALTER TABLE语句中给出的列规范。These might be changes to a data type, to attributes associated with a data type, or to an index specification.这些可能是对数据类型、与数据类型关联的属性或索引规范的更改。

All changes are subject to the internal row-size limit of 65,535 bytes, which may cause some attempts at data type changes to fail. 所有更改都受到65535字节的内部行大小限制,这可能会导致某些数据类型更改尝试失败。See Section 8.4.7, “Limits on Table Column Count and Row Size”.请参阅第8.4.7节,“表列计数和行大小限制”

To see whether MySQL used a data type other than the one you specified, issue a DESCRIBE or SHOW CREATE TABLE statement after creating or altering the table.要查看MySQL是否使用了您指定的数据类型以外的数据类型,请在创建或更改表后发出DESCRIBESHOW CREATE TABLE语句。

Certain other data type changes can occur if you compress a table using myisampack. 如果使用myisampack压缩表,则可能会发生某些其他数据类型更改。See Section 16.2.3.3, “Compressed Table Characteristics”.请参阅第16.2.3.3节,“压缩表特性”