zoukankan      html  css  js  c++  java
  • Illegal mix of collations (latin5_turkish_ci,IMPLICIT) and (gb2312_chinese_ci,COERCIBLE) for operati

    再做一个小项目debug的时候,发现这个bug:

    java.sql.SQLException: Illegal mix of collations (latin5_turkish_ci,IMPLICIT) and (gb2312_chinese_ci,COERCIBLE) for operation 'like'

    其实,很容可以分析得出,是因为数据库对应的那个字段字符集编码不同,不合法的连接。

    可以查看对应的字段的字符编码是什么然后改为 “gb2312”字符编码即可。

  • 相关阅读:
    UVa10779
    UVa10779
    C++ 内存管理学习笔记
    c++ 学习笔记
    AcWing 275 传纸条
    I
    Tree HDU6228
    Lpl and Energy-saving Lamps
    C
    Secret Poems
  • 原文地址:https://www.cnblogs.com/tgxblue/p/4217356.html
Copyright © 2011-2022 走看看