Friday, July 31, 2020

How to split column data into rows in Oracle

SELECT REGEXP_SUBSTR (:P2_SELECTED_NODES,
                          '[^:]+',
                          1,
                          ROWNUM)
              ID
      FROM DUAL
CONNECT BY LEVEL <= LENGTH (REGEXP_REPLACE (:P2_SELECTED_NODES, '[^:]+')) + 1;

Input: 1:2:3:4
Output: 
1
2
3
4

No comments:

Post a Comment

Delete Row Button to all records of Interactive Report in Oracle Apex

 1. add 'Delete' Del column to Report Query 2. Set the Following Properties for the DEL Column Type: Link Heading: Delete Targ...