Altering Table Character Set in MySQL
A MySQL table currently exhibits the latin1 character set, conflicting with the desired utf8 character set. To rectify this, it's essential to modify the table's default character set.
To achieve this transformation, employ the following SQL statement:
ALTER TABLE table_name CONVERT TO CHARACTER SET character_set_name;
Substituting the table and character set names, the appropriate query becomes:
ALTER TABLE etape_prospection CONVERT TO CHARACTER SET utf8;
Executing this query will successfully convert the etape_prospection table's default character set to utf8, ensuring compatibility with the preferred character encoding.
The above is the detailed content of How to Change the Character Set of a MySQL Table from Latin1 to UTF8?. For more information, please follow other related articles on the PHP Chinese website!