稍微整理了,下面的SQL是根据权限来展示,只需要传入code
select * from ORGANIZATION a START WITH a.code = ‘103‘ CONNECT BY PRIOR a.code = “具体的编码” order by a.sort ASC
这个SQL 是可以把查到的该函数可以把列值以","号分隔起来,并显示成一行,组成一个大字段clob的数据。
select wm_concat(code) from ORGANIZATION a START WITH a.code = ‘103‘ CONNECT BY PRIOR a.code = a.parent_code order by a.sort ASC
时间: 2024-11-05 18:41:02