Description\n-----------\n\nWhen a CREATE TABLE or ALTER TABLE command is issued, MariaDB silently changes a column specification in the following cases:\n\n PRIMARY KEY columns are always NOT NULL.\n Any trailing spaces from SET and ENUM values are discarded.\n TIMESTAMP columns are always NOT NULL, and display sizes are discarded.\n A row-size limit of 65535 bytes applies.\n If strict SQL mode is not enabled (by default, it is), a VARCHAR column longer than 65535 become TEXT, and a VARBINARY columns longer than 65535 becomes a BLOB. If strict mode is enabled the silent changes will not be made, and an error will occur.\n If a USING clause specifies an index that's not permitted by the storage engine, the engine will instead use another available index type that can be applied without affecting results.\n* If the CHARACTER SET binary attribute is specified, the column is created as the matching binary data type. A TEXT becomes a BLOB, CHAR a BINARY and VARCHAR a VARBINARY. ENUMs and SETs are created as defined.\n\nTo ease imports from other RDBMSs, MariaDB also silently maps the following data types:\n\n| Other Vendor Type    | MariaDB Type                                                      |\n| -------------------- | ----------------------------------------------------------------- |\n| BOOL                 | TINYINT      |\n| BOOLEAN              | TINYINT      |\n| CHARACTER VARYING(M) | VARCHAR(M)    |\n| FIXED                | DECIMAL      |\n| FLOAT4               | FLOAT          |\n| FLOAT8               | DOUBLE        |\n| INT1                 | TINYINT      |\n| INT2                 | SMALLINT    |\n| INT3                 | MEDIUMINT  |\n| INT4                 | INT              |\n| INT8                 | BIGINT        |\n| LONG VARBINARY       | MEDIUMBLOB |\n| LONG VARCHAR         | MEDIUMTEXT |\n| LONG                 | MEDIUMTEXT |\n| MIDDLEINT            | MEDIUMINT  |\n| NUMERIC              | DECIMAL      |\n\nCurrently, all MySQL types are supported in MariaDB.\n\nFor type mapping between Cassandra and MariaDB, see Cassandra storage engine.\n\nExamples\n--------\n\nCREATE TABLE SilenceIsGolden\n   (\n    f1 TEXT CHARACTER SET BINARY,\n    f2 VARCHAR(15) CHARACTER SET BINARY,\n    f3 CHAR CHARACTER SET BINARY,\n    f4 ENUM('x','y','z') CHARACTER SET BINARY,\n    f5 VARCHAR (65536),\n    f6 VARBINARY (65536),\n    f7 INT1\n   );\nQuery OK, 0 rows affected, 2 warnings (0.31 sec)\n\nSHOW WARNINGS;\n+-------+------+-----------------------------------------------+\n| Level | Code | Message                                       |\n+-------+------+-----------------------------------------------+\n| Note  | 1246 | Converting column 'f5' from VARCHAR to TEXT   |\n| Note  | 1246 | Converting column 'f6' from VARBINARY to BLOB |\n+-------+------+-----------------------------------------------+\n\nDESCRIBE SilenceIsGolden;\n+-------+-------------------+------+-----+---------+-------+\n| Field | Type              | Null | Key | Default | Extra |\n+-------+-------------------+------+-----+---------+-------+\n| f1    | blob              | YES  |     | NULL    |       |\n| f2    | varbinary(15)     | YES  |     | NULL    |       |\n| f3    | binary(1)         | YES  |     | NULL    |       |\n| f4    | enum('x','y','z') | YES  |     | NULL    |       |\n| f5    | mediumtext        | YES  |     | NULL    |       |\n| f6    | mediumblob        | YES  |     | NULL    |       |\n| f7    | tinyint(4)        | YES  |     | NULL    |       |\n+-------+-------------------+------+-----+---------+-------+\n\nURL: https://mariadb.com/docs/server/reference/sql-statements/data-definition/create/silent-column-changes