Purpose
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 to define output columns. - Requirement to provide XQuery literals
Alias
In Oracle-compatible mode, you do not need to explicitly specify an alias; the system can generate one if not provided.
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 |
