Skip to content

Documentation for TRIM, RTRIM and LTRIM OQL functions#11058

Open
passalaqua wants to merge 5 commits intomendix:developmentfrom
passalaqua:dat/feature/trim
Open

Documentation for TRIM, RTRIM and LTRIM OQL functions#11058
passalaqua wants to merge 5 commits intomendix:developmentfrom
passalaqua:dat/feature/trim

Conversation

@passalaqua
Copy link
Copy Markdown
Contributor

Requires team review. To be published with Studio Pro 11.11

Comment thread content/en/docs/refguide/modeling/domain-model/oql/oql-expression-syntax.md Outdated
Comment thread content/en/docs/refguide/modeling/domain-model/oql/oql-expression-syntax.md Outdated
Comment thread content/en/docs/refguide/modeling/domain-model/oql/oql-expression-syntax.md Outdated
Comment thread content/en/docs/refguide/modeling/domain-model/oql/oql-expression-syntax.md Outdated
@basdebakker
Copy link
Copy Markdown
Member

Approved by datastorage team.

Copy link
Copy Markdown
Collaborator

@MarkvanMents MarkvanMents left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +1359 to +1369
#### Examples

```sql
SELECT LTRIM(LastName, 'D') FROM Sales.Order WHERE Price = 1.50000001
```

| LastName |
|:---------|
| oe |
| Moose |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if the trim character is the only character of the string? Do you get NULL or a zero-length string?

LTRIM(String, 'D') DDDDD


### LTRIM{#ltrim}

Removes leading characters from a `string`. If no `character` is specified for trimming, space is used.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the language of the app make any difference. For example, if the string is Arabic, LTRIM will still trim from the left (rather than the leading characters on the right).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants