Procedure execution failed 1267 - Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT) for operation '='

把mysql里所有table的varchar字段的字符集,批量换成了utf8mb4/utf8mb4_unicode_ci ,以便能保存一些表情,结果存储过程报错;

这是因为临时存储表的编码和表的编码不符;

所以在游标使用到的变量修改编码;

DECLARE qpCategory VARCHAR(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

即可!

posted @ 2019-04-25 17:31  十黎九夏  阅读(4676)  评论(0)    收藏  举报