RTRIM
All functions > STRING > RTRIM
Removes whitespace from the right (end) of a string.
Syntax
RTRIM(expr)
sql
Arguments
Parameter | Type | Required | Description |
---|---|---|---|
string | VARCHAR | Yes | String to trim |
Returns
String with trailing whitespace removed
Notes
- Removes spaces, tabs, newlines from the end only
- Leading whitespace is preserved
- Middle whitespace is preserved