Extracts JSON data and returns it as a relational table.
MySQL 8.0 suite of JSON functions including JSON_TABLE, which converts JSON to a relational rowset, and JSON_OBJECTAGG / JSON_ARRAYAGG for aggregation. JSON_TABLE enables powerful SQL-over-JSON queries.
| Database System | Support Status | Since Version | Notes |
|---|---|---|---|
| MySQL | ✓ Supported | 8.0.4 | Added in MySQL 8.0.4 |
| PostgreSQL | ✓ Supported | 17 | Native JSON_TABLE support added in PostgreSQL 17. Prior versions use jsonb_to_recordset() or lateral jsonb_array_elements() as workarounds. |
| SQL Server | ✓ Supported | 2016 | Use OPENJSON |
| Oracle | ✓ Supported | 12c | Native JSON_TABLE |
| SQLite | ✗ Not Supported | — | No JSON_TABLE—use json_each/json_extract |
Turn JSON docs into relational rows/columns for easy querying.
Added in MySQL 8.0.4
Native JSON_TABLE support added in PostgreSQL 17. Prior versions use jsonb_to_recordset() or lateral jsonb_array_elements() as workarounds.
Use OPENJSON
Native JSON_TABLE
No JSON_TABLE—use json_each/json_extract