Support for storing and querying JSON within SQL is progressing
for the ANSI/ISO SQL Standard, and for MySQL 5.7. I'll look at
what's new, and do some comparisons.
The big picture
The standard document says
The SQL/JSON path language is a query language used by certain
SQL operators (JSON_VALUE, JSON_QUERY, JSON_TABLE, and
JSON_EXISTS, collectively known as the SQL/JSON query operators)
to query JSON text.The SQL/JSON path language is not, strictly
speaking, SQL, though it is embedded in these operators within
SQL. Lexically and syntactically, the SQL/JSON path language
adopts many features of ECMAScript, though it is neither a subset
nor a superset of ECMAScript.The semantics of the SQL/JSON path
language are primarily SQL semantics.
Here is a chart that shows the JSON-related data types and
functions in the standard, and whether a particular DBMS has
something with the same name and a similar functionality. …
[Read more]