TRIM_LEADING
Learn how to use the TRIM_LEADING string function in PlaidCloud Lakehouse. Removes all occurrences of the specified trim string from the beginning of the...
Removes all occurrences of the specified trim string from the beginning of the string.
See also:
Analyze Syntax
func.trim_leading(<string>, <trim_string>)
Analyze Examples
func.trim_leading('xxdatabendxx', 'x')
┌──────────────────────────────────────────┐
│ func.trim_leading('xxdatabendxx', 'x') │
├──────────────────────────────────────────┤
│ databendxx │
└──────────────────────────────────────────┘
SQL Syntax
TRIM_LEADING(<string>, <trim_string>)
SQL Examples
SELECT TRIM_LEADING('xxdatabend', 'xxx'), TRIM_LEADING('xxdatabend', 'xx'), TRIM_LEADING('xxdatabend', 'x');
┌────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ trim_leading('xxdatabend', 'xxx') │ trim_leading('xxdatabend', 'xx') │ trim_leading('xxdatabend', 'x') │
├───────────────────────────────────┼──────────────────────────────────┼─────────────────────────────────┤
│ xxdatabend │ databend │ databend │
└────────────────────────────────────────────────────────────────────────────────────────────────────────┘