日期:2014-05-18 浏览次数:20474 次
with cte as ( select id from tb where pid=@id union all select a.id from tb a join cte b on a.id=b.pid ) select * from cte