MySQL illegal mix of collations when everything is collated the same

后端 未结 1 1114
逝去的感伤
逝去的感伤 2021-01-22 12:45

I can run this query in MySQL and it works just fine. BUT, I need to do a LEFT function on ctd.FULL_DESCRIPTION (TEXT datatype) and take just the first 3600 characters and when

1条回答
  •  清歌不尽
    2021-01-22 13:21

    The issue was the system variable collation_connection was set to latin1_swedish_ci and everything else was utf8_general_ci. Setting collation_connection to utf8_general_ci allowed the query to run successfully.

    0 讨论(0)
提交回复
热议问题