Following an example:
select USERNAME, XMLConcat(
XMLElement("User", username),
XMLElement("When", to_char(CREATED, 'dd/mm/yyyy hh24:mi:ss')),
XMLElement("Id", USER_ID),
XMLElement("OracleOwn ", ORACLE_MAINTAINED)
XMLElement("OracleOwn ", ORACLE_MAINTAINED)
) xml_concat
from all_users fetch first 3 rows only
Click to enlarge |
Pay attention to the "blank" in the "OracleOnw" string: it is mantained.
References
[1] https://docs.oracle.com/database/122/ADXDB/generation-of-XML-data-from-relational-data.htm#GUID-3806853D-2AAA-4D2D-AD98-3E0941F7BE17Part13 Index Part15
Nessun commento:
Posta un commento