Add some function doc (#1377)

This commit is contained in:
HangyuanLiu
2019-06-25 21:02:42 +08:00
committed by ZHAO Chun
parent 22873d4f41
commit 51b2c1d5b2
5 changed files with 102 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# left
## Syntax
`VARCHAR left(VARCHAR str)`
## Description
它返回具有指定长度的字符串的左边部分
## Examples
```
mysql> select left("Hello doris",5);
+------------------------+
| left('Hello doris', 5) |
+------------------------+
| Hello |
+------------------------+
```

View File

@ -0,0 +1,20 @@
# right
## Syntax
`VARCHAR right(VARCHAR str)`
## Description
它返回具有指定长度的字符串的右边部分
## Examples
```
mysql> select right("Hello doris",5);
+-------------------------+
| right('Hello doris', 5) |
+-------------------------+
| doris |
+-------------------------+
```

View File

@ -0,0 +1,20 @@
# strleft
## Syntax
`VARCHAR strleft(VARCHAR str)`
## Description
它返回具有指定长度的字符串的左边部分
## Examples
```
mysql> select strleft("Hello doris",5);
+------------------------+
| strleft('Hello doris', 5) |
+------------------------+
| Hello |
+------------------------+
```

View File

@ -0,0 +1,20 @@
# strright
## Syntax
`VARCHAR strright(VARCHAR str)`
## Description
它返回具有指定长度的字符串的右边部分
## Examples
```
mysql> select strright("Hello doris",5);
+-------------------------+
| strright('Hello doris', 5) |
+-------------------------+
| doris |
+-------------------------+
```