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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Parse the large string

msbSep 4 2024 — edited Sep 4 2024

Hello everyone,

Oracle version is 19C.

Here is the same query:

with testdata
as (select '13423424243;key:Appointment.ApptId,value:123;key:HSTID,value:111;' APPID from dual
union all
select '13423424243;key:Appointment.ApptId,value:124;key:HSTID,value:222;' from dual
union all
select '13423424243;key:Appointment.ApptId,value:125;key:HSTID,value:333;' from dual
union all
select '13423424243;key:Appointment.ApptId,value:126;key:HSTID,value:4444;' from dual
)
select *
from testdata;

trying to get the output like below. Thank you for your time.

ApptId

123

124

125

126

This post has been answered by Frank Kulash on Sep 4 2024
Jump to Answer
Comments
Post Details
Added on Sep 4 2024
10 comments
204 views