1. 程式人生 > >MySQL Error: Illegal mix of collations for operation 'concat'

MySQL Error: Illegal mix of collations for operation 'concat'

img err style for utf8 size ron 字段 png

  在使用concat連接字符串時出現錯誤:MySQL Error: Illegal mix of collations for operation ‘concat‘

  原因:字段操作默認為UTF8的編碼,應該絕對統一使用UTF-8,而創建數據庫時使用了其它編碼。

  技術分享

   解決方法:在Navicat for MySQL中刪除掉原來的數據庫,重新新建,新建時設置字符集和排序規則為UTF-8

  技術分享

MySQL Error: Illegal mix of collations for operation 'concat'