How to change the default charset of a MySQL table?

前端 未结 5 498
渐次进展
渐次进展 2020-12-02 07:33

There is a MySQL table which has this definition taken from SQLYog Enterprise :

Table              Create Table                             


        
5条回答
  •  离开以前
    2020-12-02 08:01

    Change table's default charset:

    ALTER TABLE etape_prospection
      CHARACTER SET utf8,
      COLLATE utf8_general_ci;
    

    To change string column charset exceute this query:

    ALTER TABLE etape_prospection
      CHANGE COLUMN etape_prosp_comment etape_prosp_comment TEXT CHARACTER SET utf8 COLLATE utf8_general_ci;
    

提交回复
热议问题