oracle报错SQL:
select * from "ManagementYY"
where 1=1 and rownum<=50 and YYLSH not in (select YYLSH from "ManagementYY" where 1=1 and rownum<=0 order by YYLSH) order by YYLSH
原因:子查询中不能用 order by YYLSH;
解决办法:KILL order by YYLSH
本文深入探讨了Oracle SQL查询中出现的特定错误及其解决策略,重点分析了子查询中不能使用ORDER BY的问题,并提供了相应的解决方法。通过实例演示,帮助开发者避免常见错误,提升SQL查询效率。
oracle报错SQL:
select * from "ManagementYY"
where 1=1 and rownum<=50 and YYLSH not in (select YYLSH from "ManagementYY" where 1=1 and rownum<=0 order by YYLSH) order by YYLSH
原因:子查询中不能用 order by YYLSH;
解决办法:KILL order by YYLSH
1万+
1万+
3万+

被折叠的 条评论
为什么被折叠?