## RTRIM(x,y)

RTRIM(x,y) is a string function that removes at the end of the character string x (string specification) the blanks (code attribute ASCII, UNICODE) and then all of the characters specified in the character string y (string specification).

The result of RTRIM(x,y), therefore, ends with the last character that was not specified in y. Only expressions that produce an alphanumeric value are permitted as string specifications.

| Result of the RTRIM(x,y) function
RTRIM(x) | Spaces only (code attribute ASCII, UNICODE) are removed from x.
x is a NULL value | NULL Value

### Examples

SQL Tutorial, Changing Character Strings

See also:

TRIM(x,y)

LTRIM(x,y)