ORA-39753: unsupported use of subquery in PARTITIONED OUTER JOIN condition
Cause: An attempt was made to use subquery in PARTITIONED OUTER JOIN condition.
Action: Remove subquery from the join condition.
ORA-39753( unsupported use of subquery in PARTITIONED OUTER JOIN condition)错误指的是,在分割外连接条件中使用子查询是不受支持的。
ORA-39753在分割外连接条件中使用子查询是不受支持的。
SELECT * FROM table1
LEFT OUTER JOIN table2
ON table1.a = table2.a
WHERE table2.a IN (SELECT a FROM table3)
1. 修改查询,使用JOIN替代WHERE子句中包含子查询的分割外连接:
SELECT * FROM table1
LEFT OUTER JOIN table2
ON table1.a = table2.a
LEFT OUTER JOIN table3
ON table3.a = table2.a
2. 针对子查询中的条件进行优化:
SELECT * FROM table1
LEFT OUTER JOIN table2
ON table1.a = table2.a
LEFT OUTER JOIN table3
ON table3.a = table2.a
WHERE EXISTS (SELECT a FROM table3 WHERE table2.a = table3.a)
本文标签:ORA-39753 unsupported use of subquery in PARTITIONED OUTER JOIN condition
原文链接:
版权说明: 本文由作者上传,本站仅提供存储服务,转载请注明原文链接