码迷,mamicode.com
首页 > 数据库 > 详细

mysql 字符集错误 Illegal mix of collations

时间:2015-09-10 19:45:07      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:

  SELECT * FROM     mobile_card.mcc_o2o_repayment_request orr         INNER JOIN     bi_o2o_sfq.CARD C ON C.CARDID = orr.cardno LIMIT 0, 50

Error Code: 1267. Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation ‘=‘ 0.038 sec

这个是Mysql字符集错误

SELECT *

FROM

    mobile_card.mcc_o2o_repayment_request orr

        INNER JOIN

    bi_o2o_sfq.CARD C ON C.CARDID = orr.cardno COLLATE utf8_unicode_ci

给错误的字符集合,给强制转化一下  加   COLLATE utf8_unicode_ci

mysql 字符集错误 Illegal mix of collations

标签:

原文地址:http://my.oschina.net/internetafei/blog/504560

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!