---
title: "Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '="
author: "hellostory"
date: "2012-02-17T09:01:00Z"
tags: []
slug: "illegal-mix-of-collations-utf8-unicode-ci-implicit-and-utf8-general-ci-implicit-for-operation"
draft: false
lastmod: "2012-02-22T11:13:11Z"
id: 1416469
url: "https://hellostory.iteye.com/blog/1416469"
---

**问题描述**：MySQL进行字符串比较时发生错误：

错误如下：

**解决方法**：将比较等式一边进行字符串转换，如改为“**CONVERT(b.fullCode USING utf8) COLLATE utf8\_unicode\_ci**”