column_list) [[DEFAULT] CHARACTER SET
collation_name]] ALTER TABLE
tbl_name[[DEFAULT] CHARACTER SET
CREATE TABLE t1 ( ... ) CHARACTER SET latin1 COLLATE latin1_danish_ci;
MySQL chooses the table character set and collation in the following manner:
COLLATEare specified, character set
CHARACTER SETis specified without
COLLATE, character set
Xand its default collation are used. To see the default collation for each character set, use the
COLLATEis specified without
CHARACTER SET, the character set associated with
Otherwise, the database character set and collation are used.
The table character set and collation are used as default values for column definitions if the column character set and collation are not specified in individual column definitions. The table character set and collation are MySQL extensions; there are no such things in standard SQL.