Skip to content

Commit 4e07d4a

Browse files
💬Generate LLM translations (#1738)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: z <[email protected]>
1 parent 5edae3b commit 4e07d4a

File tree

2 files changed

+47
-6
lines changed

2 files changed

+47
-6
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: GLOB
3+
---
4+
5+
import FunctionDescription from '@site/src/components/FunctionDescription';
6+
7+
<FunctionDescription description="Introduced or updated: v1.2.714"/>
8+
9+
使用通配符执行区分大小写的模式匹配:
10+
11+
- `?` 匹配任何单个字符。
12+
- `*` 匹配零个或多个字符。
13+
14+
## 语法
15+
16+
```sql
17+
GLOB(<string>, <pattern>)
18+
```
19+
20+
## 返回类型
21+
22+
返回 BOOLEAN 类型:如果输入字符串与模式匹配,则返回 `true`,否则返回 `false`
23+
24+
## 示例
25+
26+
```sql
27+
SELECT
28+
GLOB('abc', 'a?c'),
29+
GLOB('abc', 'a*d'),
30+
GLOB('abc', 'abc'),
31+
GLOB('abc', 'abcd'),
32+
GLOB('abcdef', 'a?c*'),
33+
GLOB('hello', 'h*l');;
34+
35+
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
36+
│ glob('abc', 'a?c') │ glob('abc', 'a*d') │ glob('abc', 'abc') │ glob('abc', 'abcd') │ glob('abcdef', 'a?c*') │ glob('hello', 'h*l') │
37+
├────────────────────┼────────────────────┼────────────────────┼─────────────────────┼────────────────────────┼──────────────────────┤
38+
│ true │ false │ true │ false │ true │ false │
39+
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
40+
```

docs/cn/sql-reference/20-sql-functions/06-string-functions/index.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: 字符串函数
44

55
本节提供了 Databend 中与字符串相关的函数的参考信息。
66

7-
## 字符串操作
7+
## 字符串操作:
88
- [CONCAT](concat.md)
99
- [CONCAT_WS](concat-ws.md)
1010
- [INSERT](insert.md)
@@ -27,7 +27,7 @@ title: 字符串函数
2727
- [LTRIM](ltrim.md)
2828
- [RTRIM](rtrim.md)
2929

30-
## 字符串信息
30+
## 字符串信息:
3131
- [ASCII](ascii.md)
3232
- [BIT_LENGTH](bit-length.md)
3333
- [CHAR_LENGTH](char-length.md)
@@ -41,13 +41,13 @@ title: 字符串函数
4141
- [STRCMP](strcmp.md)
4242
- [JARO_WINKLER](jaro-winkler.md)
4343

44-
## 大小写转换
44+
## 大小写转换:
4545
- [LCASE](lcase.md)
4646
- [LOWER](lower.md)
4747
- [UCASE](ucase.md)
4848
- [UPPER](upper.md)
4949

50-
## 正则表达式:
50+
## 模式匹配:
5151
- [LIKE](like.md)
5252
- [NOT_LIKE](not-like.md)
5353
- [NOT_REGEXP](not-regexp.md)
@@ -58,16 +58,17 @@ title: 字符串函数
5858
- [REGEXP_REPLACE](regexp-replace.md)
5959
- [REGEXP_SUBSTR](regexp-substr.md)
6060
- [RLIKE](rlike.md)
61+
- [GLOB](glob.md)
6162

62-
## 编码与解码:
63+
## 编码和解码:
6364
- [BIN](bin.md)
6465
- [FROM_BASE64](from-base64.md)
6566
- [HEX](hex.md)
6667
- [OCT](oct.md)
6768
- [TO_BASE64](to-base64.md)
6869
- [UNHEX](unhex.md)
6970

70-
## 其他
71+
## 其他:
7172
- [CHAR](char.md)
7273
- [MID](mid.md)
7374
- [QUOTE](quote.md)

0 commit comments

Comments
 (0)