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!

Oracle sql split text into rows

aetlNov 25 2020 — edited Nov 25 2020

Hello Everyone ,
I have a clob column which has value like this :
{
adam smith
class:abcd
}
{
xxxyyyy
class:abcd
}
{
zzzz
class:abcd
}

class:abcd characters are common all between {}

İ want to split into rows after each class:abcd} :
row 1:{
adam smith
class:abcd
}
row2:{
adam smith
class:abcd
}

row3:{
adam smith
class:abcd
}

I tried to use connect by but i didnt do it exactly.

How can i split this text into rows ?

Regards,

This post has been answered by Paulzip on Nov 26 2020
Jump to Answer

Comments

So your primary desire is to copy and paste? Have you tried the "Copy Selected Rows" button? If so, how would you like it to behave?
Also, I assume you have tried saving the data as CSV? Then you can literally open it in Excel.

User_ZZQ0F

Yes, I would like to have a possibility of copy and pase but only selected part of result (ex. only one column)

1 - 2

Post Details

Added on Nov 25 2020
7 comments
431 views