1)select t.*, level, connect_by_isleaf from test t start with pid = ' ' connect by prior id = pid order siblings by rwno;请问,这种方式有没有替代方法,实现跟1)一样的查询结果,谢谢。
用 with union all 递归...
大神你好,我当前的问题是如何通过Oxxxx 产品号,链接uxx,RXXXX,Lxxxx,并且计算它们通过Z102到Z107的时间。 我之前用的方法 1)select t.*, level, connect_by_isleaf from test t start with pid = ' ' connect by prior id = pid order siblings by rwno; 但是sql提示我不能用这个语句做远程查询。图表展示如下。 请帮忙出个解决方案
是的 connect by 不能用远程数据。现在两种方式,一 把远程数据 备份到本地库,在递归。二 用 with union all的方式 实现递归
from test t
start with pid = ' '
connect by prior id = pid
order siblings by rwno;请问,这种方式有没有替代方法,实现跟1)一样的查询结果,谢谢。
我之前用的方法
1)select t.*, level, connect_by_isleaf
from test t
start with pid = ' '
connect by prior id = pid
order siblings by rwno;
但是sql提示我不能用这个语句做远程查询。图表展示如下。
请帮忙出个解决方案