摘要:
--向下递归 with temp (OrgId,ParentId,OrgName) as ( select OrgId,ParentId,OrgName from Org where OrgId='01' union all select a.OrgId, a.ParentId,a.OrgName 阅读全文
摘要:
1、使用for xml path('') 和stuff Select * Into #temp From ( select 'A' id,'aa' name union all select 'A' id,'bb' name union all select 'A' id,'cc' name uni 阅读全文