Skip to main content

TRIM_TRAILING

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

See also:

Syntax

TRIM_TRAILING(<string>, <trim_character>)

Examples

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

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