Troubleshooting “Illegal mix of collations” error in mysql

前端 未结 17 2599
一生所求
一生所求 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:39

    I personnaly had this problem in a procedure. If you dont want to alter table you can try to convert your parameter into the procedure . I've try sevral use of collate (with a set into the select) but none works for me.

    CONVERT(my_param USING utf32) did the trick.

提交回复
热议问题