标签:lin 递归 index with union where 节点 number nbsp
;
with
f
as
(
select
*
from
tab
where
id=1
union
all
select
a.*
from
tab
as
a
inner
join
f
as
b
on
a.pid=b.id
)
select
*
from
f
标签:lin 递归 index with union where 节点 number nbsp
原文地址:http://www.cnblogs.com/johnblogs/p/6803274.html