Wednesday, 3 April 2019

Split Comma Separated string and pass to IN clause of Select Statement. Split single comma delimited string into rows in Oracle. How to convert comma separated values column to rows in oracle using “regexp” Function


Split Comma Separated string and pass to IN clause of Select Statement.

Split single comma delimited string into rows in Oracle.

How to convert comma separated values column to rows in oracle using “regexp” Function

SELECT  regexp_substr(:P_Range,'[^,]+',1,level) p_range FROM dual
CONNECT BY regexp_substr(:P_Range,'[^,]+',1,level) is not null
ORDER BY 1



No comments:

Post a Comment

How to change Employee Number Generation from Manual to Automatic in Oracle HRMS (When attempting to apply for a job in iRecruitment)

When attempting to apply for a job in iRecruitment, the following error occurs: ERROR: You must enter an Application Number. Solution: How t...