Skip to Main Content

SQL & PL/SQL

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!

Parse Quote Qualified Delimited String

littlecatNov 29 2021 — edited Nov 29 2021

Hi
I am sure people must have done this before and do not want to reinvent wheel, but I cannot located succinct answer.
I wish to parse quote qualified string into fields so can obtain nth field. Although sometimes, may not be quote qualified. Looking for plsql function to get nth field
eg input strings
"abc","123","def","456" where 3rd field is def
abc,123,def,456 where 4th field is 456
"abc","123,321","def","456" where 2nd field is 123,321

apex_string.split nearly does this, but does not handle quote qualified.
Any assistance appreciated.

This post has been answered by mathguy on Nov 29 2021
Jump to Answer
Comments
Post Details
Added on Nov 29 2021
10 comments
1,418 views