I am trying to use built-in XML functions, but I’m getting an %s: invalid identifier
error. Selects works fine without the XML functions.
Any ideas where is the mistake?
select id,full_name from users where id in(
with sample_data as
(
(select pm_id
from pm where p_id=30369)
)
select cast(t.column_value.extract('//text()') as varchar2(40)) val
from sample_data,
table( xmlsequence( xmltype(
'<x><x>' || replace(pm_id, '#@#', '</x><x>') || '</x></x>'
).extract('//x/*'))) t)