select case superguid when '0' then name else (select LISTAGG(name,'.') WITHIN GROUP(ORDER BY levelno) from busfw_t_dchead where tablecode = 'BDM_T_HC2232002019'
start with guid = a.guid
connect by prior superguid = guid) end name from busfw_t_dchead a where tablecode = 'BDM_T_HC2232002019' and isleaf = 1

 

 

 

posted on 2020-07-02 17:28  ..SunXin  阅读(163)  评论(0编辑  收藏  举报