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

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

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

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

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

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题