Skip to content

Commit a11c0f2

Browse files
authored
[doc](function) update json_array (#2456)
1 parent f079dc2 commit a11c0f2

File tree

2 files changed

+7
-3
lines changed
  • docs/sql-manual/sql-functions/scalar-functions/json-functions
  • i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/json-functions

2 files changed

+7
-3
lines changed

docs/sql-manual/sql-functions/scalar-functions/json-functions/json-array.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@
55
}
66
---
77

8-
# JSON_ARRAY
98
## Description
109
Generate a JSON array containing the specified elements. Returns an empty array when no parameters are passed.
1110

1211
## Syntax
1312
```sql
1413
JSON_ARRAY([<expression>, ...])
1514
```
15+
## Arguments
16+
### Variable arguments:
17+
- `<expression>`: Elements to be included in the JSON array can be of a single type or multiple types, including NULL.
18+
## Returns
19+
[`Nullable(JSON)`](../../../basic-element/sql-data-types/semi-structured/JSON.md): Returns a JSON array containing the specified values. If no values are specified, an empty JSON array is returned.
1620

1721
## Parameters
1822
### Variable parameters:

i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/json-functions/json-array.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
}
66
---
77

8-
# JSON_ARRAY
9-
## 功能
8+
## 描述
109
生成一个包含指定元素的 json 数组,未传入参数时返回空数组。
10+
1111
## 语法
1212
```sql
1313
JSON_ARRAY([<expression>, ...])

0 commit comments

Comments
 (0)