JSON_QUERY()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Enterprise Server
Topics on this page:
Overview
A description for this Function has not yet been added to this Documentation.
EXAMPLES
SELECT JSON_QUERY('{"1":{"a":1, "b":[2]}}', '$.1');
+---------------------------------------------+
| JSON_QUERY('{"1":{"a":1, "b":[2]}}', '$.1') |
+---------------------------------------------+
| {"a":1, "b":[2]} |
+---------------------------------------------+
SELECT JSON_QUERY('{"a":{"b":"xyz"}}','$.a');
+---------------------------------------+
| JSON_QUERY('{"a":{"b":"xyz"}}','$.a') |
+---------------------------------------+
| {"b":"xyz"} |
+---------------------------------------+
SELECT JSON_QUERY('{"a":{"b":"xyz"}}','$.a[1]');
+------------------------------------------+
| JSON_QUERY('{"a":{"b":"xyz"}}','$.a[1]') |
+------------------------------------------+
| NULL |
+------------------------------------------+
CHANGE HISTORY
EXTERNAL REFERENCES
Additional information on this topic may be found in the MariaDB Public Knowledge Base.