是否可以从内联表值函数返回 With-Statement 表?
我的 With-Statement 看起来像这样
WITH ret AS(
SELECT t.ID
FROM SelfReferencingTable
WHERE ID = @PartnerID
UNION ALL
SELECT t.ID
FROM (SelfReferencingTable) t INNER JOIN
ret r ON t.ParentID = r.ID
)