<分区>
我试图在按日期排序时获取第 5 到 10 行,但由于某种原因,我总是以这个 sql 错误结束:
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 '(ORDER BY CreatedDate) AS Row, GameID, UserID, Title, Description, CreatedDate F' at line 1
这是我正在尝试使用的查询:
SELECT ROW_NUMBER() OVER (ORDER BY CreatedDate) AS Row, GameID, UserID, Title, Description, CreatedDate
FROM game
WHERE Row >= 5 AND Row <= 10
有人知道我在这里做错了什么吗?或者更好的方法来解决这个问题?
感谢阅读/帮助