From [1]: Each of the value expressions (value_expr in Figure 8-3) is converted to XML format, and, optionally, identifier "alias" is used as the attribute identifier. For an object type or collection, the AS clause is required. For other types, the AS clause is optional
Click to enlarge |
Well, I need to rename the element:
select username,
XMLForest(username, to_char(CREATED, 'dd/mm/yyyy hh24:mi:ss') when,
USER_ID, ORACLE_MAINTENED) XML_forest
from all_users fetch first 3 rows only
Click to enlarge |
I also can indent the functions. In following example I use XMLElement and XMLForest
Click to enlarge |
Just let me reformat the output changing the column size
Click to enlarge |
and I can indent the functions
Click to enlarge |
References
[1] https://docs.oracle.com/database/122/ADXDB/generation-of-XML-data-from-relational-data.htm#GUID-D9666485-0383-4AF6-B352-B9A90AE1DCFBPart12 Index Part14
Nessun commento:
Posta un commento