阅读背景:

如何获得递归CTE中生成的最后一条记录?

来源:互联网 

In the code below I am using a recursive CTE(Common Table Expression) in SQL Server 2005 to try and find the top level parent of a basic hierarchical structure. The rule of this hierarchy is that every CustID has a ParentID and if the CustID has no parent then the ParentID = CustID and it is the highest level.In the code below I am using a recursive CTE(Co




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: