NULL ON NULL将 JSONNULL值用作当前数组元素。 ABSENT ON NULL将忽略该数组元素。 STRICT:用以验证输出结果是合法的 JSON 格式的数据。 RETURNING CLOB|BLOB|JSON|VARCHAR2|VARCHAR2[size]:用以指定返回值类型,其中VARCHAR2[size]可以限制返回值的长度。
NULL ON NULL将 JSONNULL值用作当前数组元素。 ABSENT ON NULL将忽略该数组元素。 STRICT:用以验证输出结果是合法的 JSON 格式的数据。 RETURNING CLOB|BLOB|JSON|VARCHAR2|VARCHAR2[size]:用以指定返回值类型,其中VARCHAR2[size]可以限制返回值的长度。
json_null_clause 選擇性。 當value_expression為JSON_ARRAYAGG時,json_null_clause可用來控制NULL函數的行為。NULL ON NULL選項會在於 JSON 陣列中產生元素值時,將 SQLNULL值轉換成 JSON null 值。 如果值為ABSENT ON NULL,則NULL選項會省略 JSON 陣列中的元素。 如果省略,則ABSENT ON NULL為預設值。 order_b...
ABSENT ON NULL A null array element is not included in the JSON array. This setting is the default. NULL ON NULL A null array element is included in the JSON array. RETURNING data-type Specifies the format of the result. data-type The data type of the result. The default data type is...
ABSENT ON NULL A null array element is not included in the JSON array. This is the default. NULL ON NULL A null array element is included in the JSON array. RETURNING data-type Specifies the format of the result. data-type The data type of the result. For CHAR and VARCHAR results, ...
JSON_on_null_clause この句を使用して、exprがNULLと評価される場合のこのファンクションの動作を指定します。 NULL ON NULL - この句を指定した場合は、JSONのNULL値が戻されます。 ABSENT ON NULL - この句を指定した場合は、JSON配列からこの値が省略されます。これはデフォルトです。 JS...
Optional. json_null_clause can be used to control the behavior of JSON_ARRAYAGG function when value_expression is NULL. The option NULL ON NULL converts the SQL NULL value into a JSON null value when generating the value of the element in the JSON array. The option ABSENT ON NULL omits...
---+ | JSON_ARRAYAGG(JSON_DOCFORMATJSON) | +---+ | [[1],[1,2],[1,2,3],{key:"value"}] | +---+ 1 row in set # Use the ABSENT ON NULL clause. obclient> SELECT JSON_ARRAYAGG(id ORDER BY id ABSENT ON NULL) FROM id_table; +---+ | JSON_ARRAYAGG(ID...
JSON_on_null_clause Use this clause to specify the behavior of this function whenexprevaluates to null. NULLONNULL- If you specify this clause, then the function returns the JSON null value. ABSENTONNULL- If you specify this clause, then the function omits the value from the JSON array. ...
JSON_ARRAYAGG 函數會傳回 JSON 陣列,其中包含一組 JSON 或 SQL 值中每一個值的陣列元素。 JSON_ARRAYAGG ( JSON 表示式 FORMAT JSONFORMAT BSONORDER BY,sort-key-expressionASCDESC ABSENT ON NULLNULL ON NULL RETURNINGCLOB (2G) CCSID 1208FORMAT JSONRETURNING資料類型FORMAT JSONENCODING UTF8ENCODING UTF...