MySQL:1366 - Incorrect string value错误解决办法

今天使用navicat向MySQL中插入中文时,报错:

1366 - Incorrect string value:...

在我自己数据库设计之初,没有设计好字符编码格式的问题。

使用如下语句解决:

alter table tableName convert to charset utf8;

猜你喜欢

转载自www.cnblogs.com/zrmw/p/10069979.html