With As 获取 id parentId 递归获取所有
摘要:
Declare@IdIntSet@Id=5;---在此修改父节点WithRootNodeCTE(Id,ParentId)As(SelectId,ParentIdFromBOMWhereParentIdIn(@Id)UnionAllSelectBOM.Id,BOM.ParentIdFromRootNo... 阅读全文
posted @ 2014-07-03 16:56 wcq 阅读(728) 评论(0) 推荐(0) 编辑