mysql插入中文报错

1366 - Incorrect string value: ‘\xE5\xAD\x97\xE7\xAC\xA6…’ for column ‘type’ at row 1

mysql插入中文报错
报类型错误,show create table 看下

mysql插入中文报错
默认是latin1

直接转换

alter table tb_temp_cloume_200608_ymm change tb_temp_cloume_200608_ymm varchar(50) character utf8;

ok可以了。

mysql插入中文报错

相关文章:

  • 2022-12-23
  • 2021-08-09
  • 2021-05-08
  • 2021-12-27
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2022-01-03
猜你喜欢
  • 2021-11-10
  • 2022-12-23
  • 2021-07-28
  • 2022-12-23
  • 2021-12-23
  • 2021-04-13
相关资源
相似解决方案