摘要: 父找子with RTD1 as( select Id,pid from Sys_XCode ), RTD2 as( select * from RTD1 where id=1 union all select RTD1.* from RTD2 inner join RTD1 on RTD2.id=RTD1.PID ) select * from RTD2 子找父with RTU1 as( select id ,pid from UserGroup ... 阅读全文
posted @ 2013-09-18 11:58 永远没有尽头 阅读(253) 评论(0) 推荐(0) 编辑