发布网友 发布时间:2022-04-22 07:56
共2个回答
热心网友 时间:2022-04-14 02:50
with temp(orgid,parentorgid) as
(
select distinct o.orgid,o.parentorgid from baf_org_organization o where o.orgid='11' and o.isvalid='Y'
union all
select distinct o.orgid,o.parentorgid from baf_org_organization o
inner join temp b on o.parentorgid = b.orgid
)
select orgid from temp
试下,对Oracle的语法不是太了解,我理解的是这个意思。
热心网友 时间:2022-04-14 04:08
sqlserver没有这个写法