morrySnow commented on code in PR #1851: URL: https://github.com/apache/doris-website/pull/1851#discussion_r1921085891
########## versioned_docs/version-2.1/sql-manual/sql-functions/scalar-functions/string-functions/trim.md: ########## @@ -24,31 +24,56 @@ specific language governing permissions and limitations under the License. --> -## trim -### description -#### Syntax +## Description -`VARCHAR trim(VARCHAR str[, VARCHAR rhs])` +This command is used to delete Spaces or specified characters at both ends of the string. If no rhs parameter is specified, delete the Spaces that appear continuously at the beginning of the right and left parts of str. Otherwise, delete rhs +## Syntax -When the 'rhs' parameter is not present, remove the continuous spaces that appear from the starting and ending of the 'str' parameter. Otherwise, remove 'rhs'. +```sql +RTIM( <str> [ , <rhs>]) Review Comment: ```suggestion TRIM( <str> [ , <rhs>]) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org