LTRIM (Azure Cosmos DB)

Returns a string expression after it removes leading blanks.

Syntax

LTRIM(<str_expr>)  

Arguments

str_expr
Is a string expression.

Return types

Returns a string expression.

Examples

The following example shows how to use LTRIM inside a query.

SELECT LTRIM("  abc") AS l1, LTRIM("abc") AS l2, LTRIM("abc   ") AS l3 

Here is the result set.

[{"l1": "abc", "l2": "abc", "l3": "abc   "}]  

Remarks

This system function will not utilize the index.

Next steps