what is the simpler way to generate a rowset...row xml structure with a normal, static query?
- From: codadilupo <yossarian99@xxxxxxxxxxxxx>
- Date: Fri, 15 Feb 2008 09:58:51 +0100
Platform: Oracle 10.2.0.3 SE/Linux
I know that using DBMS_XMLGEN I can get query results in a ROWSET..ROW
XML structure but I have to feed it with a dynamic SQL string or a ref
cursor.
What is the simpler way to generate a ROWSET..ROW XML structure with a
normal, static query?
My best shot is:
select
xmlElement (
"ROWSET",
xmlAgg (
xmlElement (
"ROW",
xmlForest (
first_name,
last_name,
)
)
)
)
from
employees
where
manager_id=100
order by
last_name
;
Is there a simpler way? I tried with SYS_XMLGEN but I'm not able to make
it work with more than one column.
Thank you. Kind regards, C.
.
- Prev by Date: Re: Ad-hoc/Dynamic SQL Performance
- Next by Date: Oracle text search is slow. Need help
- Previous by thread: Ad-hoc/Dynamic SQL Performance
- Next by thread: Oracle text search is slow. Need help
- Index(es):
Relevant Pages
|