Skip to main content

RTRIM

Introduced or updated: v1.2.659

Removes specific characters from the end (right side) of a string.

See also:

Syntax

RTRIM(<string>, <trim_character>)

Examples

SELECT RTRIM('databendxx', 'xx');

┌───────────────────────────┐
│ rtrim('databendxx', 'xx')
├───────────────────────────┤
│ databend │
└───────────────────────────┘
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today