Cause: java.sql.SQLException: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation ‘like’
; uncategorized SQLException; SQL state [HY000]; error code [1267]; Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation ‘like’; nested exception is java.sql.SQLException: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation ‘like’
原因:此表格的字符集是latin1_swedish_ci 应该改成utf_8

博客指出Java中出现SQLException,提示字符集(latin1_swedish_ci,IMPLICIT)和(utf8_general_ci,COERCIBLE)在‘like’操作中不兼容。原因是表格字符集为latin1_swedish_ci,应改成utf_8。
2328

被折叠的 条评论
为什么被折叠?



