IsDescendant(DMX)

适用于: SQL Server Analysis Services

指示当前节点是否源自指定节点。

语法

  
IsDescendant(<NodeID>)  

返回类型

Boolean 类型。

注解

IsDescendant 仅在 SELECT FROM <模型中>使用。CONTENT (DMX) 和 SELECT FROM <模型>。DIMENSION_CONTENT (DMX) 查询。

示例

以下示例返回了 IsDescendant 函数中指定的节点的所有后代情况。

SELECT * FROM [TM Decision Tree].CONTENT  
WHERE IsDescendant('00000000100')