gpt4 book ai didi

MYSQL Select row_number() 不起作用

转载 作者:行者123 更新时间:2023-11-29 02:52:50 25 4
gpt4 key购买 nike

<分区>

我试图在按日期排序时获取第 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

有人知道我在这里做错了什么吗?或者更好的方法来解决这个问题?

感谢阅读/帮助

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com