内容来自博客:https://www.cnblogs.com/install/p/4417527.html

 

MySQL Illegal mix of collations for operation 'like'
在 MySQL 5.5 以上, 若字段类型 Type 是 time,date,datetime
在 select时如果使用 like '%中文%' 会出现 Illegal mix of collations for operation 'like'
在编程时要对每个字段进行查找,
在执行时可能就会出现时间字段 like '%中文%' 这种语法,
在旧版的 MySQL 是不会出现错误的.
升到 MySQL 5.5 以上, 必需改成 like binary '%中文%' 即可避免出现错误.

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2021-04-15
  • 2021-04-17
  • 2021-12-09
猜你喜欢
  • 2021-12-04
  • 2021-07-02
  • 2021-05-20
  • 2022-02-18
  • 2021-12-07
  • 2021-07-17
  • 2022-12-23
相关资源
相似解决方案