Skip to Main Content

DevOps, CI/CD and Automation

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!

Xquery SQL Function

967661Oct 11 2012 — edited Oct 11 2012
Hi,

In an XQuery query is it posssible to call a function or procedure SQL (PL / SQL)?
Here is an example of what I'd achieved :


SELECT PRD.XMLCOLUMN from
XMLTABLE('for $i in ora:view("P_iXXX")/ROW,
$j in ora:view("P_jXXX")/ROW,
where
($i/NSU_xxx = $j/NSU_xxx)
return
(
<NCL>
{
$i/NSU_xxx,
h3. CALL Function SQL ???? as sql_xxx
for $k in ora:view("P_kxxx")/ROW
$vk/COD_RMP_VPM = "PRD")
return()
}
</NCL>
)' COLUMNS "resultsqlfunction" INTEGER PATH 'xsql_xxx' "NSU_xxx" INTEGER PATH 'NSU_xxx',"XMLCOLUMN" XMLType PATH '.') as PRD;

Thank you in advance for your answers
François
This post has been answered by odie_63 on Oct 11 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 8 2012
Added on Oct 11 2012
6 comments
3,775 views