---
schema_version: "1"
id: 870a1a841f45710e59d8c98ac1f70814ea225b47975d8547c8495a04a4b988bd
title: LTRIM
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/data-cloud/data-cloud-query-guide/references/data-cloud-sql-reference/scalar-func/string-func/ltrim.md
canonical_url: https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/ltrim.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: a69709e436f21560157077bdd0a77ed31172d32c6eb8d708843ffc5ce1093a4d
products:
  - Data 360 Query Guide
  - Data 360 Developer Documentation
---
# `LTRIM`

**Applies to:** ✅ Data 360 SQL ✅ Tableau Hyper API

Removes specified characters from the start of a string.

## Syntax

```sql
ltrim(<string> [, characters])
```

## Arguments

### Required

- `<string>`: The string to trim.

### Optional

- `characters`: The characters to remove. Defaults to space.

## Returns

Returns a text value with specified characters removed from the start.

## Considerations

- Removes individual characters from the set, not as a substring pattern.
- Continues removing until it encounters a character not in the set.

## Examples

### Left Trim

Remove characters from the start of a string.

```sql
SELECT ltrim('zzzytest', 'xyz') AS result;
```

Returns `'test'`.

## Related Documentation

- [String Types](https://developer.salesforce.com/docs/data/data-cloud-query-guide/datatype/string.md)
