在 MySQL 多表关联查询时,经常会遇到类似这样的错误:
(1267, "Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8mb4_0900_ai_ci,IMPLICIT) for operation '='")
这是由于不同表或字段使用了不一致的字符集排序规则导致的冲突。本文提供一套完整的解决方案,帮助你将整个数据库的排序规则统一,彻底解决此类问题。
原文链接:https://blog.csdn.net/houoyy_/article/details/138707887
xml <!--sql server驱动-->
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>sqljdbc4</artifactId>
<version>4.0</version>
</dependency>
<!--选择下面的-->
<!-- https://mvnrepository.com/artifact/com.microsoft.sqlserver/mssql-jdbc -->
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>11.2.3.jre17</version>
</dependency>