Troubleshooting “Illegal mix of collations” error in mysql

前端 未结 17 2699
一生所求
一生所求 2020-11-22 08:11

Am getting the below error when trying to do a select through a stored procedure in MySQL.

Illegal mix of collations (latin1_general_cs,IMPLICIT) and

17条回答
  •  旧巷少年郎
    2020-11-22 08:24

    Sometimes it can be dangerous to convert charsets, specially on databases with huge amounts of data. I think the best option is to use the "binary" operator:

    e.g : WHERE binary table1.column1 = binary table2.column1
    

提交回复
热议问题