Description
Table functions are used to convert data sources such as JSON, XML, or external files into queryable relational row sets.
Common table function entries in Oracle-compatible mode include:
JSON_TABLE(...)XMLTABLE(...)FILES(...)
Syntax features
Common entry points
JSON_TABLE(...)XMLTABLE(...)FILES(...)
Key capabilities of XMLTABLE
- Support for
XMLNAMESPACESnamespace declarations - Support passing XML data using
PASSING - Support the
COLUMNSclause for defining output columns - Requirement to provide XQuery literals
Aliases
In Oracle-compatible mode, you do not need to explicitly specify an alias. If no alias is specified, the system can generate one.
Functions for returning table schemas
Name |
Purpose |
|---|---|
| JSON_TABLE | Map JSON documents to relational tables |
| XMLTABLE | Map XML documents to relational tables |
| FILES | Generate a queryable rowset from an external file |
