我正在使用分层查询从表结构中提取详细信息。我是在'START WITH'条件下从内部查询引用列,但它抛出未知列错误请检查
查询:
select
(select obj.name
from (select LEVEL parentLevel, object_id id, name from temp_object START WITH object_id=sopi.OBJECT_ID CONNECT BY PRIOR parent_id = object_id) obj
where parentLevel=4) "temp Order Name"
from
(SELECT OBJECT_ID
FROM temp_params
WHERE value = 'Add' AND object_id IN
(SELECT object_id
FROM temp_references
WHERE reference IN
(SELECT object_id
FROM temp_params
WHERE list_id = 9133409) AND attt_id = '9133410')) sopi
问题在于突出显示的区域,我计划从内部查询引用该列。
即。 START WITH object_id = sopi.OBJECT_ID无效,请帮助