全部评论
with ab as (select parent_id,emp_id,emp_name,cast(CAST(parent_id as varchar(10)) as varchar(10)) up_manger from lma1 where parent_id=0 union all select lma1.parent_id,lma1.emp_id,lma1.emp_name , CAST( a.up_manger +','+cast(lma1.parent_id as varchar(10)) as varchar(10)) from lma1 inner join ab a on lma1.parent_id=a.emp_id) select * from ab
相关推荐
点赞 评论 收藏
分享