Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT) for operation '='


執行類似如下SQL時:

select a.xxx
from a bjdm, b
where a.id=b.id and a.yyy='20000007' ;

 

報錯如下
Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT) for operation '='

 

解決辦法:
alter table a convert to character set utf8mb4 collate utf8mb4_general_ci;

alter table b convert to character set utf8mb4 collate utf8mb4_general_ci;

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM