问题标签 [ora-01427]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
28 浏览

oracle - 内联视图中的 ORA-1427

我们的 Prod 环境中有一个查询失败,该查询因 ora-01427 单行子查询返回更多行而失败。这是oracle 11g 数据库。如下查询。这个查询运行良好,直到我们用 SQ3 添加最后的左外连接,一旦添加它会在一段时间后失败并出现 ORA-1427。

当我使用 WITH 子句重写此查询时,它运行良好,见下文。当下面的第二个执行没有改变逻辑时,为什么第一个查询失败的任何想法。