请问oracle connect by prior 和left join 怎么一起使用?

没法下班了,抹泪请教一下,这里start with的otherId字段的值需要是另一个表的字段,怎么把另一个表和这条查询join 起来,

select count(1) as total connect by prior id = otherId
start with otherId = 'abc'
阅读 2.1k
1 个回答
新手上路,请多包涵

你的描述不是很清楚 ,可以把相关的表举例出来。

根据你现有信息,
后面添加子查询 :
start with otherId = {select 另一个表字段 from xxx}

推荐问题