Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Comma Seperated List Into Apex Collection

GUS CRIGHTONNov 28 2025

Hi

Apex 24.2

I have text field that holds a list of barcodes (comma seperated).

I need to split this list into individual barcodes and save into a collection.

The below code splits the list but how do I save this into a collection

with rws as (
select ',leading,commas,and,trailing,' str from dual
)
select regexp_substr (
str,
'[^,]+',
1,
level
) value
from rws
connect by level <=
length ( trim ( both ',' from str ) ) -
length ( replace ( str, ',' ) ) + 1;

Any help appreciated

Regards

Gus

This post has been answered by Gerrit van der Linden on Nov 28 2025
Jump to Answer
Comments
Post Details
Added on Nov 28 2025
3 comments
97 views