以下是我的查询语句:
INSERT INTO location_province(name, country)
SELECT child.name
,location_country.id
FROM location_1 child
INNER JOIN location_1 parent
ON child.parent_id = parent.id
INNER JOIN location_country
ON location_country.name = parent.name
WHERE child.location_type = 1
出现了以下错误:
#1267 - 在操作“=”时字符集不一致(utf8_unicode_ci,IMPLICIT)和(utf8_general_ci,IMPLICIT)
出了什么问题,我该怎么解决?
注意:在查询末尾添加COLLATE utf8_unicode_ci
也无法解决该问题。
utf8mb4_unicode_ci
。 - Martinutf8mb4_unicode_ci
排序规则。有任何想法吗? - Martin AJlocation_1
表是MyISAM
,我已将其更改为像其他表一样的InnoDB
。 - Martin AJ#1253 - COLLATION 'utf8mb4_unicode_ci' 不适用于 CHARACTER SET 'latin1'
- Martin AJutf8_general_ci
。 - Rahul#1253-COLLATION'utf8_general_ci'对于CHARACTER SET'latin1'无效
的错误。您能告诉我问题具体在哪里吗? - Martin AJ