摘要: -- Get childs by parent id WITH Tree AS ( SELECT Id,ParentId FROM dbo.Node P WHERE P.Id = 21 -- parent id UNION ALL SELECT C.Id,C.ParentId FROM dbo.Node C INNER JOIN Tree T ON C.Paren... 阅读全文
posted @ 2016-04-18 00:43 coolsundy 阅读(390) 评论(0) 推荐(0) 编辑