Mysql查询报错

Error Code: 1267. Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '='0.001 sec

提示两个表的编码不一致,需要进行转换

将比较等式一边进行字符串转换,如改为ALTER TABLE 表名 CONVERT TO CHARACTER SET utf8 collate utf8_unicode_ci

相关文章:

  • 2021-09-29
  • 2022-12-23
  • 2022-02-25
  • 2022-12-23
  • 2021-04-17
  • 2021-12-09
  • 2021-10-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-18
  • 2021-04-15
  • 2021-11-04
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案