665 B
665 B
RTRIM
[esql-rtrim]
Syntax
:::{image} ../../../../../images/rtrim.svg :alt: Embedded :class: text-center :::
Parameters
string
- String expression. If
null
, the function returnsnull
.
Description
Removes trailing whitespaces from a string.
Supported types
string | result |
---|---|
keyword | keyword |
text | keyword |
Example
ROW message = " some text ", color = " red "
| EVAL message = RTRIM(message)
| EVAL color = RTRIM(color)
| EVAL message = CONCAT("'", message, "'")
| EVAL color = CONCAT("'", color, "'")
message:keyword | color:keyword |
---|---|
' some text' | ' red' |