SQL命令使用以获取和联合的结局未正确结束
为什么此查询返回的SQL命令未正确结束'错误?
select column1, length(column1) from test10 order by length(column1), column1 asc
fetch first 1 rows only
union
select column1, length(column1) from test10 order by length(column1) desc, column1 asc fetch first 1 rows only;
Why this query return 'SQL command not properly ended' error?
select column1, length(column1) from test10 order by length(column1), column1 asc
fetch first 1 rows only
union
select column1, length(column1) from test10 order by length(column1) desc, column1 asc fetch first 1 rows only;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该数据库有问题来识别属于何方的问题。
因此,您可以通过括号来帮助解析器
db<> fiddle
f121b9505ee4880b3838388888888888888888880e496f72c3旧引擎
如此这个问题的结果是
The database has problems to identify where what belongs.
so you can help the parser with parenthesis
db<>fiddle here
hackerrank has a really old engine
So the result to that problem is