2
我對一個視圖運行此XML查詢創建的XMLType XML一個看法?即使用和XMLSequence(光標)
select xmlelement("clientid", xmlattributes (a.clientid),
(select xmlagg(
xmlelement("plan",
xmlattributes(b.planid,b.planame),
xmlagg(xmlelement ("ppt", xmlattributes (b.pname, b.pdname)
)))) from **table(xmlsequence(cursor))** b
where b.clientid = a.clientid
group by b.planid,b.planname)) as xml from **table(xmlsequence(cursor))** a group by a.clientid;
還是有另一種方法來做到這一點? 我的Oracle XML的東西實在是缺乏,所以我道歉,如果我的問題是福利局十歲上下... 感謝