MySQL Forums
Forum List  »  Newbie

Query: Illegal Mix of Collations
Posted by: Max Hugen
Date: June 17, 2015 07:19PM

I created a simple query with 2 tables joined, but got the error:

Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '='

The query:

SELECT
`contractitems`.`ContractItemType`
, `x_item_type`.`TypeAbbrev`
FROM
`cams_kpn_kps`.`contractitems`
INNER JOIN `cams_kpn_kps`.`x_item_type`
ON (`contractitems`.`ContractItemType` = `x_item_type`.`LineItemType`);

Both tables are currently Char Set=utf8, and Collation=utf8_unicode_ci.

However, one table, `contractitems`, was created as utf8_general_ci, and was later changed to utf8_unicode_ci - but I wouldn't have thought that should be a problem?

Max Hugen
Australia

Options: ReplyQuote


Subject
Written By
Posted
Query: Illegal Mix of Collations
June 17, 2015 07:19PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.