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 CRIGHTON44 minutes ago

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

Comments
Post Details
Added 44 minutes ago
1 comment
7 views