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!

How to Convert string data to multiple rows

SravpremAug 18 2023

Hi ,

I have a column having data type as varchar2. Data in that column will be like below in one row in below format.

[Errors [code=ERR0066, description=ABC must be greater than 500],Errors [code=ERR0067, description=DEF must be greater than 454],Errors [code=ERR0066, description=ABC must be greater than 500],Errors [code=ERR0067, description=DEF must be greater than 454]]

Now I need to convert above string data into rows and distinct errors records has to show. like following

Columnname

Errors [code=ERR0066, description=ABC must be greater than 500]

Errors [code=ERR0067, description=DEF must be greater than 454]

Can you help by providing the SQL query to get above result

This post has been answered by Frank Kulash on Aug 29 2023
Jump to Answer
Comments
Post Details
Added on Aug 18 2023
6 comments
661 views