This is the syntax:
I run following statement
select username, XMLElement("Schema",
XMLAttributes(username as "User",
to_char(CREATED, 'dd/mm/yyyy hh24:mi:ss') as "When"
USER_ID as "Id"
ORACLE_MANTAINED as "OracleOwn")
) xml_user_details
from all_users fetch first 3 rows only
As you can see, the XML in yellow rectangle, is not complete. I have to format the column, changing the value of long
Part11 Index Part13
I run following statement
select username, XMLElement("Schema",
XMLAttributes(username as "User",
to_char(CREATED, 'dd/mm/yyyy hh24:mi:ss') as "When"
USER_ID as "Id"
ORACLE_MANTAINED as "OracleOwn")
) xml_user_details
from all_users fetch first 3 rows only
As you can see, the XML in yellow rectangle, is not complete. I have to format the column, changing the value of long
References
[1] https://docs.oracle.com/database/122/ADXDB/generation-of-XML-data-from-relational-data.htm#GUID-868E591C-19A1-4E4A-BC2A-013181071B77Part11 Index Part13
Nessun commento:
Posta un commento