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