Skip to main content

Celonis Product Documentation

LTRIM
Description

LTRIM returns the string with leading whitespace removed.

Supported input column types: STRING

Output column type: STRING

Whitespace is defined as being the whitespace characters in version 12.1.0 of the Unicode Standard.

Syntax
 LTRIM ( table.column ) 
NULL handling

If the value is NULL, the result is NULL as well.

Example

[1]

Remove leading whitespace from strings.

Query

Column1

         LTRIM ( "Table1"."Column1" )
        

Input

Output

Table1

Column1 : string

'Example without leading whitespace'

' Example with leading whitespace'

' PQL'

'a '

' '

''

null

' '

Result

Column1 : string

'Example without leading whitespace'

'Example with leading whitespace'

'PQL'

'a '

''

''

null

''

See also: