SELECT *,rank() over(PARTITION BY score ORDER BY score DESC) AS rank FROM sc;
这是我的表图片和查询语句,一直报错。烦得很
1 queries executed, 0 success, 1 errors, 0 warnings
查询:select *,rank() over(PARTITION BY score ORDER BY score DESC) as rank from sc LIMIT 0, 1000
错误代码: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘(PARTITION BY score ORDER BY score DESC) as rank from sc LIMIT 0, 1000’ at line 1
执行耗时 : 0 sec
传送时间 : 0 sec
总耗时 : 0 sec