LTRIM

All functions > STRING > LTRIM

Returns the string with whitespace from the left (beginning) removed.

Signatures

Returns: String with leading whitespace removed

LTRIM(string: VARCHAR) → VARCHAR
sql
ParameterTypeRequiredDescription
stringVARCHARYesString to trim

Notes

  • Removes spaces, tabs, newlines from the beginning only
  • Trailing whitespace is preserved
  • Middle whitespace is preserved

Examples

FeatureQL
SELECT
    f1 := LTRIM('  hello  '),  -- Trim left only
    f2 := LTRIM('	world  '),  -- Trim tab from left
    f3 := LTRIM('  mixed   spaces  '),  -- Only left trim
    f4 := LTRIM('no trim needed')  -- No left whitespace
;
Result
f1 VARCHARf2 VARCHARf3 VARCHARf4 VARCHAR
hello world mixed spaces no trim needed

Last update at: 2026/03/03 16:47:38
Last updated: 2026-03-03 16:48:19