Description
Table functions are used to convert data sources such as JSON, XML, or external files into queryable relational rowsets.
Common table function entries in Oracle-compatible mode include:
JSON_TABLE(...)XMLTABLE(...)FILES(...)
Syntax characteristics (Oracle-compatible mode)
Common entry points
JSON_TABLE(...)XMLTABLE(...)FILES(...)
Key capabilities of XMLTABLE
- Support for the
XMLNAMESPACESnamespace declaration. - 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 not provided, 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 |
