标签:rac cte general span imp lte where col 编码
解决:
方案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
标签:rac cte general span imp lte where col 编码
原文地址:https://www.cnblogs.com/adolfmc/p/13281042.html