Skip to main content

TRIM_LEADING

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

See also:

Syntax

TRIM_LEADING(<string>, <trim_character>)

Examples

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

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