Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation

在数据库执行查找的命令,判断条件含有特殊字符,再执行的时候报了以上错误;

查看字段编码发现是 latin1 字符集的latin1_german1_ci排序规则,而数据库是utf-8编码,确定错误是编码导致。

修改数据库字段为utf-8编码  再次执行 顺利查出结果

 

相关文章:

  • 2022-12-23
  • 2021-09-29
  • 2022-02-18
  • 2021-09-09
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
猜你喜欢
  • 2021-09-23
  • 2021-07-02
  • 2022-02-04
  • 2022-01-07
  • 2022-12-23
  • 2021-06-13
  • 2021-12-04
相关资源
相似解决方案