Illegal mix of collations error in MySql

后端 未结 19 2292
醉梦人生
醉梦人生 2020-11-29 01:11

Just got this answer from a previous question and it works a treat!

SELECT username, (SUM(rating)/COUNT(*)) as TheAverage, Count(*) as TheCount 
FROM ratings         


        
19条回答
  •  囚心锁ツ
    2020-11-29 02:07

    I have the same problem with collection warning for a field that is set from 0 to 1. All columns collections was the same. We try to change collections again but nothing fix this issue.

    At the end we update the field to NULL and after that we update to 1 and this overcomes the collection problem.

提交回复
热议问题