---
title: "LTRIMTEXT"
description: "The LTRIMTEXT SQL function trims the left side of a text by a list of trim texts."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/ltrimtext
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/ltrimtext
updated: 2026-08-09T00:00:00Z
license: https://documentation.invantive.eu/en/
---

## Syntax
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> LTRIMTEXT[LTRIMTEXT]:::quoted
    LTRIMTEXT --> End((END))
```

## Purpose
The `LTRIMTEXT` SQL function trims the left side of a text by a list of trim texts. When the text starts with a trim text, the trim text is removed.

See also [[RTRIMTEXT]].

Parameters:
- Text (`varchar2`): text to be trimmed.
- Trim Text (optional, `varchar2`): text(s) we want to left trim from Text. Defaults to whitespace.

Returns: the trimmed text.

## Examples
The following example trims the text `The ` from the left side of `The Invantive`:
```sql
select ltrimtext('The Dog', 'The ')

-------------------
Dog
```
The following example trims the repeated text `The ` from the left side of `The The Invantive`:
```sql
select ltrimtext('The The Dog', 'The ')

-------------------
Dog
```