Skip to content

Commit 6da168f

Browse files
github-actions[bot]Chasen-Zhang
authored andcommitted
๐Ÿ’ฌGenerate LLM translations
1 parent 5bd0203 commit 6da168f

File tree

2 files changed

+26
-22
lines changed

2 files changed

+26
-22
lines changed

โ€Ždocs/cn/sql-reference/20-sql-functions/08-window-functions/last-value.mdโ€Ž

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import FunctionDescription from '@site/src/components/FunctionDescription';
1919
LAST_VALUE (expression) [ { IGNORE | RESPECT } NULLS ] OVER ([PARTITION BY partition_expression] ORDER BY order_expression [window_frame])
2020
```
2121

22-
- `[ { IGNORE | RESPECT } NULLS ]`: ๆญค้€‰้กนๆŽงๅˆถ็ช—ๅฃๅ‡ฝๆ•ฐไธญๅฆ‚ไฝ•ๅค„็† NULL ๅ€ผใ€‚้ป˜่ฎคๆƒ…ๅ†ตไธ‹๏ผŒไฝฟ็”จ `RESPECT NULLS`๏ผŒๅณ NULL ๅ€ผๅŒ…ๅซๅœจ่ฎก็ฎ—ไธญๅนถๅฝฑๅ“็ป“ๆžœใ€‚ๅฝ“่ฎพ็ฝฎไธบ `IGNORE NULLS` ๆ—ถ๏ผŒNULL ๅ€ผ่ขซๆŽ’้™คๅœจ่€ƒ่™‘ไน‹ๅค–๏ผŒๅ‡ฝๆ•ฐไป…ๅฏน้ž NULL ๅ€ผ่ฟ›่กŒๆ“ไฝœใ€‚
22+
- `[ { IGNORE | RESPECT } NULLS ]`: ๆญค้€‰้กนๆŽงๅˆถ็ช—ๅฃๅ‡ฝๆ•ฐไธญๅฆ‚ไฝ•ๅค„็† NULL ๅ€ผใ€‚้ป˜่ฎคๆƒ…ๅ†ตไธ‹๏ผŒไฝฟ็”จ `RESPECT NULLS`๏ผŒ่ฟ™ๆ„ๅ‘ณ็€ NULL ๅ€ผๅŒ…ๅซๅœจ่ฎก็ฎ—ไธญๅนถๅฝฑๅ“็ป“ๆžœใ€‚ๅฝ“่ฎพ็ฝฎไธบ `IGNORE NULLS` ๆ—ถ๏ผŒNULL ๅ€ผ่ขซๆŽ’้™คๅœจ่€ƒ่™‘ไน‹ๅค–๏ผŒๅ‡ฝๆ•ฐไป…ๅฏน้ž NULL ๅ€ผ่ฟ›่กŒๆ“ไฝœใ€‚
2323

2424
- ๆœ‰ๅ…ณ็ช—ๅฃๆก†ๆžถ็š„่ฏญๆณ•๏ผŒ่ฏทๅ‚้˜… [็ช—ๅฃๆก†ๆžถ่ฏญๆณ•](index.md#window-frame-syntax)ใ€‚
2525

@@ -41,18 +41,20 @@ VALUES
4141
(4, 'Mary', 'Williams', 7000.00),
4242
(5, 'Michael', 'Brown', 4500.00);
4343

44-
-- ไฝฟ็”จ LAST_VALUE ๆฃ€็ดข่–ชๆฐดๆœ€ไฝŽ็š„ๅ‘˜ๅทฅ็š„ first_name
44+
-- ไฝฟ็”จ LAST_VALUE ๆฃ€็ดข่–ชๆฐดๆœ€ไฝŽ็š„ๅ‘˜ๅทฅ็š„ๅง“ๆฐ
4545
SELECT employee_id, first_name, last_name, salary,
46-
LAST_VALUE(first_name) OVER (ORDER BY salary DESC) AS lowest_salary_first_name
46+
LAST_VALUE(first_name) OVER (ORDER BY salary DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS lowest_salary_first_name
4747
FROM employees;
4848

49-
employee_id | first_name | last_name | salary | lowest_salary_first_name
50-
------------+------------+-----------+---------+------------------------
51-
4 | Mary | Williams | 7000.00 | Michael
52-
2 | Jane | Smith | 6000.00 | Michael
53-
3 | David | Johnson | 5500.00 | Michael
54-
1 | John | Doe | 5000.00 | Michael
55-
5 | Michael | Brown | 4500.00 | Michael
49+
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
50+
โ”‚ employee_id โ”‚ first_name โ”‚ last_name โ”‚ salary โ”‚ lowest_salary_first_name โ”‚
51+
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
52+
โ”‚ 4 โ”‚ Mary โ”‚ Williams โ”‚ 7000.00 โ”‚ Michael โ”‚
53+
โ”‚ 2 โ”‚ Jane โ”‚ Smith โ”‚ 6000.00 โ”‚ Michael โ”‚
54+
โ”‚ 3 โ”‚ David โ”‚ Johnson โ”‚ 5500.00 โ”‚ Michael โ”‚
55+
โ”‚ 1 โ”‚ John โ”‚ Doe โ”‚ 5000.00 โ”‚ Michael โ”‚
56+
โ”‚ 5 โ”‚ Michael โ”‚ Brown โ”‚ 4500.00 โ”‚ Michael โ”‚
57+
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
5658
```
5759

5860
ๆญค็คบไพ‹ไฝฟ็”จ `IGNORE NULLS` ้€‰้กนไปŽ็ช—ๅฃๆก†ๆžถไธญๆŽ’้™ค NULL ๅ€ผ๏ผš

โ€Ždocs/cn/sql-reference/20-sql-functions/08-window-functions/nth-value.mdโ€Ž

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import FunctionDescription from '@site/src/components/FunctionDescription';
66

77
<FunctionDescription description="ๅผ•ๅ…ฅๆˆ–ๆ›ดๆ–ฐ: v1.2.568"/>
88

9-
่ฟ”ๅ›ž็ช—ๅฃๆก†ๆžถๅ†…็ฌฌ `N` ไธชไฝ็ฝฎ็š„ๅ€ผ๏ผŒๅ…ถไธญ `N` ๆ˜ฏไธ€ไธชๆŒ‡ๅฎš็š„ๆ•ดๆ•ฐ๏ผŒ็”จไบŽ็กฎๅฎšๅ€ผ็š„็กฎๅˆ‡ไฝ็ฝฎใ€‚
9+
่ฟ”ๅ›ž็ช—ๅฃๆก†ๆžถไธญ็ฌฌ `N` ไธชไฝ็ฝฎ็š„ๅ€ผ๏ผŒๅ…ถไธญ `N` ๆ˜ฏไธ€ไธชๆŒ‡ๅฎš็š„ๆ•ดๆ•ฐ๏ผŒ็”จไบŽ็กฎๅฎšๅ€ผ็š„็กฎๅˆ‡ไฝ็ฝฎใ€‚
1010

11-
ๅฆ่ฏทๅ‚้˜…๏ผš
11+
ๅฆ่ฏทๅ‚้˜…:
1212

1313
- [FIRST_VALUE](first-value.md)
1414
- [LAST_VALUE](last-value.md)
@@ -19,7 +19,7 @@ import FunctionDescription from '@site/src/components/FunctionDescription';
1919
NTH_VALUE (expression, n) [ { IGNORE | RESPECT } NULLS ] OVER ([PARTITION BY partition_expression] ORDER BY order_expression [window_frame])
2020
```
2121

22-
- `[ { IGNORE | RESPECT } NULLS ]`: ๆญค้€‰้กนๆŽงๅˆถ็ช—ๅฃๅ‡ฝๆ•ฐไธญๅฆ‚ไฝ•ๅค„็† NULL ๅ€ผใ€‚้ป˜่ฎคๆƒ…ๅ†ตไธ‹๏ผŒไฝฟ็”จ `RESPECT NULLS`๏ผŒๅณ NULL ๅ€ผๅŒ…ๅซๅœจ่ฎก็ฎ—ไธญๅนถๅฝฑๅ“็ป“ๆžœใ€‚ๅฝ“่ฎพ็ฝฎไธบ `IGNORE NULLS` ๆ—ถ๏ผŒNULL ๅ€ผ่ขซๆŽ’้™คๅœจ่€ƒ่™‘ไน‹ๅค–๏ผŒๅ‡ฝๆ•ฐไป…ๅฏน้ž NULL ๅ€ผ่ฟ›่กŒๆ“ไฝœใ€‚
22+
- `[ { IGNORE | RESPECT } NULLS ]`: ๆญค้€‰้กนๆŽงๅˆถ็ช—ๅฃๅ‡ฝๆ•ฐไธญๅฆ‚ไฝ•ๅค„็† NULL ๅ€ผใ€‚้ป˜่ฎคๆƒ…ๅ†ตไธ‹๏ผŒไฝฟ็”จ `RESPECT NULLS`๏ผŒ่กจ็คบ NULL ๅ€ผๅŒ…ๅซๅœจ่ฎก็ฎ—ไธญๅนถๅฝฑๅ“็ป“ๆžœใ€‚ๅฝ“่ฎพ็ฝฎไธบ `IGNORE NULLS` ๆ—ถ๏ผŒNULL ๅ€ผ่ขซๆŽ’้™คๅœจ่€ƒ่™‘ไน‹ๅค–๏ผŒๅ‡ฝๆ•ฐไป…ๅฏน้ž NULL ๅ€ผ่ฟ›่กŒๆ“ไฝœใ€‚
2323

2424
- ๆœ‰ๅ…ณ็ช—ๅฃๆก†ๆžถ็š„่ฏญๆณ•๏ผŒ่ฏทๅ‚้˜… [็ช—ๅฃๆก†ๆžถ่ฏญๆณ•](index.md#window-frame-syntax)ใ€‚
2525

@@ -43,19 +43,21 @@ VALUES
4343

4444
-- ไฝฟ็”จ NTH_VALUE ๆฃ€็ดข่–ชๆฐด็ฌฌไบŒ้ซ˜็š„ๅ‘˜ๅทฅ็š„ๅง“ๅ
4545
SELECT employee_id, first_name, last_name, salary,
46-
NTH_VALUE(first_name, 2) OVER (ORDER BY salary DESC) AS second_highest_salary_first_name
46+
NTH_VALUE(first_name, 2) OVER (ORDER BY salary DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS second_highest_salary_first_name
4747
FROM employees;
4848

49-
employee_id | first_name | last_name | salary | second_highest_salary_first_name
50-
------------+------------+-----------+---------+----------------------------------
51-
4 | Mary | Williams | 7000.00 | Jane
52-
2 | Jane | Smith | 6000.00 | Jane
53-
3 | David | Johnson | 5500.00 | Jane
54-
1 | John | Doe | 5000.00 | Jane
55-
5 | Michael | Brown | 4500.00 | Jane
49+
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
50+
โ”‚ employee_id โ”‚ first_name โ”‚ last_name โ”‚ salary โ”‚ second_highest_salary_first_name โ”‚
51+
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
52+
โ”‚ 4 โ”‚ Mary โ”‚ Williams โ”‚ 7000.00 โ”‚ Jane โ”‚
53+
โ”‚ 2 โ”‚ Jane โ”‚ Smith โ”‚ 6000.00 โ”‚ Jane โ”‚
54+
โ”‚ 3 โ”‚ David โ”‚ Johnson โ”‚ 5500.00 โ”‚ Jane โ”‚
55+
โ”‚ 1 โ”‚ John โ”‚ Doe โ”‚ 5000.00 โ”‚ Jane โ”‚
56+
โ”‚ 5 โ”‚ Michael โ”‚ Brown โ”‚ 4500.00 โ”‚ Jane โ”‚
57+
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
5658
```
5759

58-
ๆญค็คบไพ‹ไฝฟ็”จ `IGNORE NULLS` ้€‰้กนไปŽ็ช—ๅฃๆก†ๆžถไธญๆŽ’้™ค NULL ๅ€ผ๏ผš
60+
ๆญค็คบไพ‹ไฝฟ็”จ `IGNORE NULLS` ้€‰้กนๆŽ’้™ค็ช—ๅฃๆก†ๆžถไธญ็š„ NULL ๅ€ผ๏ผš
5961

6062
```sql
6163
CREATE or replace TABLE example AS SELECT * FROM (VALUES

0 commit comments

Comments
ย (0)