拼接SQL使用: substr(listagg(B.sitename, ';') within
group(order by b.sitename),
1,
4000) RAW_DATA_INFO
截取字符串:substr( b.linename,instr( b.linename,' ',1,1)+1,instr( b.linename,'#',1,1)-1-instr(b.linename,' ',1,1))
行转列:SELECT n.id,n.name,t.department_ids FROM p2tpcadm.wfc_task@DBLK_P2TPC T left join p2tpcadm.auth_department@DBLK_P2TPC n
on instr(',' || t.department_ids || ',', n.id || ',') > 0
网友评论