【发布时间】:2014-12-10 17:40:26
【问题描述】:
在 HP Quality Center 11.0 上:
我需要递归读取“主题”分支中的标签以查找一组缺陷。我可以说服务器是应用程序。不是 Oracle 的,因为 sys_connect_by_path “作弊”不起作用。相反,我坚持使用递归 SQL,由于缺乏脑力,我无法完成。
原理是:从bg_bug表中,获取一个item,递归列出all_lists.al_description中的entry集合,直到NULL。
种类:
检索BUG表中的所有项目 获取其父级并打印 all_lists.al_description 的链接内容 检查父级是否有父级,如果有,则获取该父级并打印 all_lists.al_description 的链接内容,将其与为其子级检索的字符串连接 重复直到孤立。
我在另一个帖子中发现了这个:
with t1 (parent, child) as (select * from all_lists t where t.al_father_id = '2') select * from t1
不能执行,因为它包含“无效语句”。我从该线程收集到,在 Quality Center 中使用 SQL 时不允许使用“with”语句。
有人可以帮忙吗?
【问题讨论】:
标签: sql recursion hp-quality-center