📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

LTRIM



Removes all occurrences of any character present in the specified trim string from the left side of the string.

See also:

Syntax

LTRIM(<string>, <trim_string>)

Examples

SELECT LTRIM('xxdatalake', 'xx'), LTRIM('xxdatalake', 'xy'); ┌───────────────────────────────────────────────────────┐ │ ltrim('xxdatalake', 'xx') │ ltrim('xxdatalake', 'xy') │ ├───────────────────────────┼───────────────────────────┤ │ datalake │ datalake │ └───────────────────────────────────────────────────────┘

Was this page helpful?