When using SQLcl with Oracle Database, you can export your query results to a JSON file with the SPOOL
command.
Tag: json
JSON_VALUE() in MySQL
In MySQL, the JSON_VALUE()
function extracts a value from a JSON document at the specified path.
The function was introduced in MySQL 8.0.21.
Continue readingJSON_OBJECTAGG() Function in Oracle
In Oracle Database, the JSON_OBJECTAGG()
function creates a JSON object from a key-value pair.
Typically, the property key, the property value, or both are columns of SQL expressions.
Continue readingJSON_OBJECT() Function in Oracle
In Oracle Database, the JSON_OBJECT()
function creates a JSON object from a sequence of key-value pairs or one object type instance.
JSON_ARRAYAGG() Function in Oracle
In Oracle Database, the JSON_ARRAYAGG()
function creates a JSON array from a column of SQL expressions.
JSON_ARRAY() Function in Oracle
In Oracle Database, the JSON_ARRAY()
function creates a JSON array from a sequence of SQL scalar expressions or one collection type instance, VARRAY
or NESTED TABLE
.
JSON_TABLE() Function in Oracle
In Oracle Database, the JSON_TABLE()
function creates a relational view of JSON data. It allows you to present the values in a JSON document in table format – as rows and columns.
JSON_VALUE() Function in Oracle
In Oracle Database, the JSON_VALUE()
function finds a specified scalar JSON value in JSON data and returns it as a SQL value.Â
JSON_QUERY() Function in Oracle
In Oracle Database, the JSON_QUERY()
function selects and returns one or more values from JSON data and returns those values.Â
You can use the function to retrieve fragments of a JSON document.
Continue readingMariaDB JSON_VALUE() vs JSON_QUERY(): What’s the Difference?
In MariaDB, the JSON_VALUE()
function and JSON_QUERY()
function do similar things – they return data from a JSON document.
So what’s the difference?
The main difference is that JSON_VALUE()
returns scalar values, whereas JSON_QUERY()
returns arrays and objects.