阅读背景:

与多父母的父子关系的CTE

来源:互联网 

I have a parent child relation table as shown below. I want to retrieve all records for a parent or child ID like all ancestors and parents and if possible with depth. For example I want to find the family of D, it will return the first 14 rows as all are of same family. There may be several set of such family. I want to query with one member and want to get whole family record. Is it possible to implement this using I have a parent child relation table as shown b




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

分享到: