标签:tar baidu https target lse 结构 test class ref
用标准sql的with实现递归查询
with subqry(id,name,pid) as (
select id,name,pid from test1 where id = 5 --指定id
union all
select test1.id,test1.name,test1.pid from test1,subqry where test1.pid = subqry.id
)
select* from subqry;
标签:tar baidu https target lse 结构 test class ref
原文地址:https://www.cnblogs.com/Fooo/p/9610286.html