SQLite RTRIM() Function
Example
Remove the spaces at the end of a text:
SELECT RTRIM('SQL Tutorial ') || '|';
Try it Yourself »
Definition and Usage
The RTRIM() function removes characters from the end (right side) of a text. By default, it removes spaces.
Tip: Also look at LTRIM(), TRIM().
Syntax
RTRIM(text, characters)
Parameter Values
| Parameter | Description |
|---|---|
| text | Required. The text |
| characters | Optional. The characters to remove. Default is a space |
Technical Details
| Return type: | Text |
|---|