Skip to content

Commit a259714

Browse files
authored
Merge pull request #213 from yangj1211/moc_doc
0.10.2->0.10.3
2 parents 20431ed + add18d6 commit a259714

File tree

6 files changed

+180
-7
lines changed

6 files changed

+180
-7
lines changed

docs/MatrixOne-Cloud/Migrate-Data/Load-Local-Data.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
Load Data Local 命令是常用的数据导入方式,MatrixOne 实例支持使用 Load Data Local 命令从客户端所在的本地文件系统批量导入 csv 文件或 jsonline 文件。若需使用本地文件导入命令,需要在数据文件所在的服务器上启动客户端连接 MatrixOne Cloud 实例,示例如下:
88

99
```sql
10-
mysql -h moc.cluster.matrixonecloud.cn -P 6001 -u a123456b_78cd_9e12_fg34_abcd5d6789ef:admin:accountadmin -p
10+
mysql -h <host> -P 6001 -u <user_name> -p --local-infile
1111
```
1212

13+
**注意**:如果需要使用本地文件导入,需要在连接 MatrixOne 实例时加上后缀 --local-infile
14+
1315
### 导入 csv 文件
1416

1517
**语法结构**
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# **LOCATE()**
2+
3+
## **函数说明**
4+
5+
`LOCATE()` 函数是用于在字符串中查找子字符串所在位置的函数。它返回子字符串在字符串中的位置,如果未找到,则返回 0。
6+
7+
由于 `LOCATE()` 函数返回的是一个整数值,所以它可以嵌套在其他函数里面使用,比如可以用 substring 函数截取字符串。
8+
9+
关于大小写,`LOCATE()` 函数不区分大小写。
10+
11+
## **函数语法**
12+
13+
```
14+
> LOCATE(subtr,str,pos)
15+
```
16+
17+
## **参数释义**
18+
19+
| 参数 | 说明 |
20+
| ---- | ---- |
21+
| substr | 必要参数。`substring` 是你正在查找的字符串。|
22+
| str | 必要参数。`string` 是要在其中搜索的字符串。|
23+
| pos | 非必要参数。`position` 是表示开始查询的位置。|
24+
25+
## **示例**
26+
27+
- 示例 1
28+
29+
```sql
30+
mysql> SELECT LOCATE('bar', 'footbarbar');
31+
+-------------------------+
32+
| locate(bar, footbarbar) |
33+
+-------------------------+
34+
| 5 |
35+
+-------------------------+
36+
1 row in set (0.00 sec)
37+
```
38+
39+
- 示例 2
40+
41+
```sql
42+
mysql>SELECT LOCATE('bar', 'footbarbar',6);
43+
+----------------------------+
44+
| locate(bar, footbarbar, 6) |
45+
+----------------------------+
46+
| 8 |
47+
+----------------------------+
48+
1 row in set (0.00 sec)
49+
```
50+
51+
- 示例 3
52+
53+
```sql
54+
mysql>SELECT SUBSTRING('hello world',LOCATE('o','hello world'),5);
55+
+---------------------------------------------------+
56+
| substring(hello world, locate(o, hello world), 5) |
57+
+---------------------------------------------------+
58+
| o wor |
59+
+---------------------------------------------------+
60+
1 row in set (0.00 sec)
61+
```
62+
63+
- 示例 4
64+
65+
```sql
66+
mysql>select locate('a','ABC');
67+
+----------------+
68+
| locate(a, ABC) |
69+
+----------------+
70+
| 1 |
71+
+----------------+
72+
1 row in set (0.00 sec)
73+
```
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# **UPPER()**
2+
3+
## **函数说明**
4+
5+
`LOWER()` 用于将给定的字符串转换为小写形式。
6+
7+
## **函数语法**
8+
9+
```
10+
> LOWER(str)
11+
```
12+
13+
## **参数释义**
14+
15+
| 参数 | 说明 |
16+
| ---- | ---- |
17+
| str | 必要参数,字母字符。|
18+
19+
## **示例**
20+
21+
```sql
22+
mysql> select lower('HELLO');
23+
+--------------+
24+
| lower(HELLO) |
25+
+--------------+
26+
| hello |
27+
+--------------+
28+
1 row in set (0.02 sec)
29+
30+
mysql> select lower('A'),lower('B'),lower('C');
31+
+----------+----------+----------+
32+
| lower(A) | lower(B) | lower(C) |
33+
+----------+----------+----------+
34+
| a | b | c |
35+
+----------+----------+----------+
36+
1 row in set (0.03 sec)
37+
```
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# **UPPER()**
2+
3+
## **函数说明**
4+
5+
`UPPER()` 用于将给定的字符串转换为大写形式。
6+
7+
## **函数语法**
8+
9+
```
10+
> UPPER(str)
11+
```
12+
13+
## **参数释义**
14+
15+
| 参数 | 说明 |
16+
| ---- | ---- |
17+
| str | 必要参数,字母字符。|
18+
19+
## **示例**
20+
21+
```sql
22+
mysql> select upper('hello');
23+
+--------------+
24+
| upper(hello) |
25+
+--------------+
26+
| HELLO |
27+
+--------------+
28+
1 row in set (0.03 sec)
29+
30+
mysql> select upper('a'),upper('b'),upper('c');
31+
+----------+----------+----------+
32+
| upper(a) | upper(b) | upper(c) |
33+
+----------+----------+----------+
34+
| A | B | C |
35+
+----------+----------+----------+
36+
1 row in set (0.03 sec)
37+
```

docs/MatrixOne-Cloud/Release-Notes/2023.md

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# **MatrixOne Cloud 2023 发布报告**
22

3+
## 2023 年 12 月 23 日
4+
5+
**MatrixOne 内核版本更新**
6+
7+
由 v1.0.1 升级至 v1.0.2 版本,详情请参考[《MatrixOne v1.0.2 发布报告》](https://docs.matrixorigin.cn/1.0.2/MatrixOne/Release-Notes/v1.0.2/)
8+
9+
**改进**
10+
11+
- 优化了查询历史的实现机制,大幅提升了该功能的响应速度。
12+
- 优化了执行 sql 失败时错误信息的展示,当执行 SQL 出错时,界面将展示更具体的报错信息,方便用户分析排错。
13+
- 优化了监控刻度线的展示,纵坐标刻度线固定为 6 条,每条刻度线取值取决于与高位区间联系,为数据监控提供一种更优雅的展现方案。
14+
- 优化了云平台整体的资源分配,使得整个云平台的性能得到提高。
15+
16+
**错误修复**
17+
18+
- 修复了实例版本查询错误的问题
19+
- 修复了错误告警的问题
20+
- 修复了查看单条 sql 详情响应慢的问题
21+
- 修复了在查询编辑器中长时间无操作未跳出到登录页面的问题
22+
- 修复了某些场景下查询编辑器中数据库切换不成功的问题
23+
- 修复了某些情况下查询编辑器中正在执行的 sql 一直处于执行中状态的问题
24+
- 修复了某些情况下查询编辑器执行 sql 失败的问题
25+
326
## 2023 年 12 月 16 日
427

528
**MatrixOne 内核版本更新**
@@ -8,12 +31,9 @@
831

932
**改进**
1033

11-
- 优化 MO Cloud 公测注册流程
12-
将试用注册申请和注册页合并,用户只需要填写一次信息即可,但公测期间仍然需要等待 MO Cloud 团队的审批,请耐心等待。
13-
- 优化了表存储大小的计算逻辑
14-
我们这次优化了表存储大小的统计逻辑,剔除了数据落盘对象存储过程中的中间数据,仅包含最终数据及其元数据压缩之后的大小。
15-
- 优化了 CU 的展示单位
16-
根据中英文的阅读习惯、实例及 SQL 的 CU 展示精度,我们分配对其进行了不同 CU 数目下的展示优化,方便用户阅读。
34+
- 优化 MO Cloud 公测注册流程,将试用注册申请和注册页合并,用户只需要填写一次信息即可,但公测期间仍然需要等待 MO Cloud 团队的审批,请耐心等待。
35+
- 优化了表存储大小的计算逻辑,我们这次优化了表存储大小的统计逻辑,剔除了数据落盘对象存储过程中的中间数据,仅包含最终数据及其元数据压缩之后的大小。
36+
- 优化了 CU 的展示单位,根据中英文的阅读习惯、实例及 SQL 的 CU 展示精度,我们分配对其进行了不同 CU 数目下的展示优化,方便用户阅读。
1737
- 提升了 AI 智能助手的回复准确性
1838

1939
**错误修复**

mkdocs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ nav:
394394
- INSTR(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/instr.md
395395
- LEFT(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/left.md
396396
- LENGTH(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/length.md
397+
- LOCATE(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/locate.md
398+
- LOWER(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/lower.md
397399
- LPAD(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/lpad.md
398400
- LTRIM(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/ltrim.md
399401
- OCT(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/oct.md
@@ -407,6 +409,8 @@ nav:
407409
- SUBSTRING(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/substring.md
408410
- SUBSTRING_INDEX(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/substring-index.md
409411
- TRIM(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/trim.md
412+
- LPAD(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/lpad.md
413+
- UPPER(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/upper.md
410414
- 正则表达式:
411415
- 正则表达式概述: MatrixOne-Cloud/Reference/Functions-and-Operators/String/Regular-Expressions/Regular-Expression-Functions-Overview.md
412416
- NOT REGEXP: MatrixOne-Cloud/Reference/Functions-and-Operators/String/Regular-Expressions/not-regexp.md

0 commit comments

Comments
 (0)