Skip to main content

LTRIM

Introduced or updated: v1.2.659

Removes specific characters from the beginning (left side) of a string.

See also:

Syntax

LTRIM(<string>, <trim_character>)

Examples

SELECT LTRIM('xxdatabend', 'xx');

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