How to change the default collation of a table?

前端 未结 4 1465
说谎
说谎 2020-11-30 16:21
create table check2(f1 varchar(20),f2 varchar(20));

creates a table with the default collation latin1_general_ci;

alte         


        
4条回答
  •  一生所求
    2020-11-30 16:56

    may need to change the SCHEMA not only table

    ALTER SCHEMA ``  DEFAULT CHARACTER SET utf8mb4  DEFAULT COLLATE utf8mb4_unicode_ci (as Rich said - utf8mb4);
    

    (mariaDB 10)

提交回复
热议问题