0

我对我的 SQL生疏,我必须处理如下所示的查询:

select * from (
-- whole bunch of code here
where
-- more bits and pieces
connect by prior x = y
start with z = 'VALUE'

我想对一组完整的值运行此查询,这是由于使用了另一个 select 语句。我正在寻找具有类似语义的东西:

start with z in (select * from ...)

我在这里使用 Oracle SQL 数据库。SQL 种类繁多,我发现很难从搜索中找到有用的东西,我没想到解决方案这么复杂(?)。最终查询不一定要高效,它只会运行一次。

4

0 回答 0