-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
opt string function doc #1849
base: master
Are you sure you want to change the base?
opt string function doc #1849
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
都是相同的问题,评论到了前面的文件上。其他文件也麻烦一起修改一下吧
|
||
`VARCHAR append_trailing_char_if_absent(VARCHAR str, VARCHAR trailing_char)` | ||
```sql | ||
append_trailing_char_if_absent(VARCHAR str, VARCHAR trailing_char) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 函数名大写
- 不需要参数类型
- 参数用尖括号包起来
append_trailing_char_if_absent(VARCHAR str, VARCHAR trailing_char) | |
APPEND_TRAILING_CHAR_IF_ABSENT(<str>, <trailing_char>) |
### example | ||
| Parameters | Description | | ||
| -- |-----------------------------| | ||
| `str` | Target string to be judged | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `str` | Target string to be judged | | |
| `<str>` | Target string to be judged | |
| Parameters | Description | | ||
| -- |-----------------------------| | ||
| `str` | Target string to be judged | | ||
| `trailing_char` | Character to be added to the end of the string (if the character does not exist) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `trailing_char` | Character to be added to the end of the string (if the character does not exist) | | |
| `<trailing_char>` | Character to be added to the end of the string (if the character does not exist) | |
|
||
```sql | ||
concat(STRING <expr1> [ ,STRING <expr2> ... ]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
concat(STRING <expr1> [ ,STRING <expr2> ... ]) | |
CONCAT(<expr> [ , <expr> ... ]) |
|
||
| Parameter | Description | | ||
| -- |--------------| | ||
| `<expr1>` | The string to be concatenated | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `<expr1>` | The string to be concatenated | | |
| `<expr>` | The string to be concatenated | |
Versions
Languages
Docs Checklist