我在左连接中使用 LEVEL。我收到了这个错误:
ORA-00976: 此处不允许 LEVEL、PRIOR 或 ROWNUM
我搜索的所有地方都说删除级别,但我无法删除级别。哪里允许水平?
SELECT t1.report_id, coalesce(t1.field_desc, t2.field_desc, 'None') field_desc
FROM dual
LEFT JOIN v_my_view t1
ON t1.priority= 1
AND t1.field_id NOT IN (
(SELECT to_number( regexp_substr(
(SELECT value FROM table WHERE KEY='property'
),'[^,]+',1,level ) )
FROM dual
CONNECT BY to_number( regexp_substr(
(SELECT value FROM table WHERE KEY='property'
),'[^,]+',1,level )) IS NOT NULL
) )
LEFT JOIN v_my_view t2
ON t1.report_id = t2.report_id
AND t1.priority= 2;