我想按分区窗口函数将cat_id分组
select row_number() over(partition by cat_id order by order_time desc) as row_num, order_id,location from order_table;
在此查询窗口函数中,有什么问题不在显示其错误运行查询的显示:您的SQL语法中有一个错误;检查与您的MySQL Server版本相对应的手册,以了解要使用的正确语法(分区。
select row_number() over(partition by cat_id order by order_time desc) as row_num, order_id,location from order_table;
Whats wrong in this Query Window function is not running Its showing Error running query: 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. Please can anyone help me here Breaking my head
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的SQL代码似乎没有错。我使用以下版本“@8.0.28”对随机数据进行了测试。请检查您的版本完全支持这些功能。我
Nothing seems wrong with your sql code. I tested with random data below using the version '@8.0.28'. Please check your version is fully supporting these capabilities. I