摘要: 1.Oracle递归查询2.SqlServer递归查询 with cte as ( select t.id,t.name,t.parentId from dbo.Department t where t.id='2' union all select k.id,k.name,k.parentId from dbo.Department k inner join cte c on c.id = k.parentId )select * from cte 阅读全文
posted @ 2012-08-09 17:55 HSHE 阅读(220) 评论(0) 推荐(0) 编辑