Created
April 25, 2013 00:50
-
-
Save anonymous/5456745 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tab has 1 xml column | |
rough code - but real code works and has this same format | |
insert into tab | |
with cte as | |
(select * | |
from xmltable(.... passing xmlparse(document cast(? as clob)) as ... <====== parameter has very long xml I need to split | |
columns | |
c1 xml path ... | |
c2 xml path ... | |
) | |
) | |
(select xmldocument(xmlelement(name ... xmlelement(name "xx", c1) ... | |
from cte | |
fetch first 1 row only | |
) | |
union all | |
(select xmldocument(c2) | |
from cte | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment