| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Output nested set model (--CELKO--) to XML
Simon...
After speaking to you...
You can use derived tables syntax to get just the xml text back without the lft column by using the following:
SELECT xml1.xmltext
FROM
(SELECT lft, xmltext = '<node emp="' + emp + '">' FROM Personnel
UNION ALL SELECT rgt, xmltext = '</node>' FROM Personnel) AS xml1
ORDER BY xml1.lft
seems to work, but obviously do the testing!
regards
Ian Received on Thu Sep 19 2002 - 02:41:45 CDT
![]() |
![]() |