JSON_TABLE
Convert JSON data to a relational table. This table function extracts data from a JSON document and returns it as a relational table with columns.
Syntax
JSON_TABLE(json_doc,
context_path COLUMNS (column_list)
) [AS] aliascolumn_list:
column[, column][, ...]column:
name FOR ORDINALITY
| name type PATH path_str [on_empty] [on_error]
| name type EXISTS PATH path_str
| NESTED PATH path_str COLUMNS (column_list)on_empty:
{NULL | DEFAULT string | ERROR} ON EMPTYon_error:
{NULL | DEFAULT string | ERROR} ON ERRORDescription
Column Definitions
Path Columns
ORDINALITY Columns
EXISTS PATH Columns
NESTED PATHs
ON EMPTY and ON ERROR Clauses
Replication
Extracting a Subdocument into a Column
See Also
Last updated
Was this helpful?

