Illegal mix of collations error in MySql

后端 未结 19 2225
醉梦人生
醉梦人生 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:06

    HAvING TheCount > 4 AND username IN (SELECT username FROM users WHERE gender=1)
    

    but why i am answering, you dont voted me as right answer :)

提交回复
热议问题