1 ;with cte as 2 ( 3 select * from Associator where No = ‘mc1007‘ 4 union all 5 select air.* from Associator as air inner join cte on air.ParentNo = cte.No 6 ) 7 select * from cte;
时间: 2025-01-04 13:30:39
1 ;with cte as 2 ( 3 select * from Associator where No = ‘mc1007‘ 4 union all 5 select air.* from Associator as air inner join cte on air.ParentNo = cte.No 6 ) 7 select * from cte;