Skip to content

Commit a88df2b

Browse files
πŸ’¬Generate LLM translations (#1699)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 5de5806 commit a88df2b

File tree

1 file changed

+12
-11
lines changed
  • docs/cn/sql-reference/20-sql-functions/06-string-functions

1 file changed

+12
-11
lines changed

β€Ždocs/cn/sql-reference/20-sql-functions/06-string-functions/left.mdβ€Ž

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

5-
θΏ”ε›žε­—η¬¦δΈ² `str` δΈ­ζœ€ε·¦θΎΉηš„ `len` δΈͺε­—η¬¦οΌŒε¦‚ζžœδ»»δ½•ε‚ζ•°δΈΊ `NULL`οΌŒεˆ™θΏ”ε›ž `NULL`。
5+
θΏ”ε›žε­—η¬¦δΈ² `str` ζœ€ε·¦θΎΉηš„ `len` δΈͺε­—η¬¦οΌŒε¦‚ζžœδ»»δΈ€ε‚ζ•°δΈΊ NULLοΌŒεˆ™θΏ”ε›ž NULLγ€‚ε¦‚ζžœ `len` 倧于 `str` ηš„ι•ΏεΊ¦οΌŒεˆ™θΏ”ε›žζ•΄δΈͺ `str`。
66

77
## 语法
88

@@ -12,10 +12,10 @@ LEFT(<str>, <len>);
1212

1313
## 参数
1414

15-
| 参数 | 描述 |
16-
|-----------|--------------------------------------------------|
17-
| `<str>` | δΈ»ε­—η¬¦δΈ²οΌŒδ»ŽδΈ­ζε–ε­—η¬¦ |
18-
| `<len>` | 字符数量 |
15+
| 参数 | 描述 |
16+
|----------|------------------------------------------------------|
17+
| `<str>` | θ¦δ»ŽδΈ­ζε–ε­—η¬¦ηš„δΈ»ε­—η¬¦δΈ² |
18+
| `<len>` | θ¦ζε–ηš„ε­—η¬¦ζ•°ι‡ |
1919

2020
## θΏ”ε›žη±»εž‹
2121

@@ -24,10 +24,11 @@ LEFT(<str>, <len>);
2424
## η€ΊδΎ‹
2525

2626
```sql
27-
SELECT LEFT('foobarbar', 5);
28-
+----------------------+
29-
| LEFT('foobarbar', 5) |
30-
+----------------------+
31-
| fooba |
32-
+----------------------+
27+
SELECT LEFT('foobarbar', 5), LEFT('foobarbar', 10);
28+
29+
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
30+
β”‚ left('foobarbar', 5) β”‚ left('foobarbar', 10) β”‚
31+
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
32+
β”‚ fooba β”‚ foobarbar β”‚
33+
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
3334
```

0 commit comments

Comments
Β (0)