SQL Server: How to limit CTE recursion to rows just recursivly added?

前端 未结 8 1143
北海茫月
北海茫月 2020-12-08 23:12

Simpler Example

Let\'s try a simpler example, so people can wrap their heads around the concepts, and have a practical example that you can copy&paste into SQL

8条回答
  •  旧时难觅i
    2020-12-08 23:44

    Aside: do you have SQL Server 2008? This might be suited to the hierarchyid data type.

提交回复
热议问题