select XMLElement("User",
XMLAttributes(USER_ID as "User ID"),
XMLColAttVal(USERNAME, ORACLE_MAINTAINED as "Is_Ora_Owned", CREATED)
) user_details
from all_users fetch first 3 rows only
Click to enlarge |
References
[1] https://docs.oracle.com/database/122/ADXDB/generation-of-XML-data-from-relational-data.htm#GUID-F643284F-A6AF-47A9-AF2C-58EF7E88C87FPart15 Index Part17
Nessun commento:
Posta un commento