1267 - Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for opera

Posted adolfmc

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了1267 - Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for opera相关的知识,希望对你有一定的参考价值。

解决:
方案1 修改表结构
ALTER TABLE `表名` CONVERT TO CHARACTER SET utf8 collate utf8_unicode_ci
1
方案2 使用 CONVERT 。之前这个表使用的编码不同是有原因的 不能随便更改 于是乎…
SELECT
d.shopname,
c.goodsno,
s.id
FROM
t_oversea_demand d
LEFT JOIN t_overseapurchasing c ON d.id = c.demandID
LEFT JOIN d_shop s ON CONVERT ( s.`name` USING utf8 ) = CONVERT ( d.shopname USING utf8 )
WHERE
d.STATUS = ‘5‘
AND d.updatetime > ‘2020-02-09‘
GROUP BY
CONCAT( d.shopname, c.goodsno )

以上是关于1267 - Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for opera的主要内容,如果未能解决你的问题,请参考以下文章

Illegal mix of collations (utf8_general_ci,IMPLICIT) and (gbk_chinese_ci,COERCIBLE) for operation &#

mysql 表关联查询报错 ERROR 1267 (HY000)

sql报错Illegal mix of collations

sql报错Illegal mix of collations

mysql 存储过程中报Illegal mix of collations

错误之Illegal mix of collations for operation 'like'