解决:
方案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 )