Skip to content

Commit a975ffa

Browse files
github-actions[bot]Chasen-Zhang
authored andcommitted
💬Generate LLM translations
1 parent d226b34 commit a975ffa

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

docs/cn/sql-reference/20-sql-functions/07-aggregate-functions/aggregate-arg-min.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: ARG_MIN
33
---
44

5-
计算最小 `val` 值对应的 `arg` 值。如果有多个不同的 `arg` 值对应于最小 `val` 值,则返回最先遇到的这些值中的一个
5+
计算最小 `val` 值对应的 `arg` 值。如果有多个不同的 `arg` 值对应于最小 `val` 值,则返回遇到的第一个值
66

77
## 语法
88

@@ -12,10 +12,10 @@ ARG_MIN(<arg>, <val>)
1212

1313
## 参数
1414

15-
| 参数 | 描述 |
16-
|-----------|----------------------------------------------------------------------------------------------------|
17-
| `<arg>` | 参数,[Databend 支持的任意数据类型](../../00-sql-reference/10-data-types/index.md) |
18-
| `<val>` | 值,[Databend 支持的任意数据类型](../../00-sql-reference/10-data-types/index.md) |
15+
| 参数 | 描述 |
16+
| --------- | ------------------------------------------------------------------------------------------------- |
17+
| `<arg>` | 参数,可以是 [Databend 支持的任何数据类型](../../00-sql-reference/10-data-types/index.md) |
18+
| `<val>` | 值,可以是 [Databend 支持的任何数据类型](../../00-sql-reference/10-data-types/index.md) |
1919

2020
## 返回类型
2121

@@ -26,6 +26,7 @@ ARG_MIN(<arg>, <val>)
2626
## 示例
2727

2828
让我们创建一个包含 id、name 和 score 列的学生表,并插入一些数据:
29+
2930
```sql
3031
CREATE TABLE students (
3132
id INT,
@@ -40,15 +41,17 @@ INSERT INTO students (id, name, score) VALUES
4041
(4, 'Dave', 80);
4142
```
4243

43-
现在,我们可以使用 ARG_MIN 来查找得分最低的学生的姓名:
44+
现在,我们可以使用 ARG_MIN 来查找得分最低的学生的名字:
45+
4446
```sql
4547
SELECT ARG_MIN(name, score) AS student_name
4648
FROM students;
4749
```
4850

4951
结果:
52+
5053
```sql
5154
| student_name |
5255
|--------------|
53-
| Charlie |
56+
| Bob |
5457
```

0 commit comments

Comments
 (0)