LTRIM (TSQL Function)

Returns the string expression, with leading blanks removed.

Syntax

LTRIM  ( string_expression )

Arguments

string_expression
is a string expression of type varchar.

Return Types

Returns varchar.

Examples

PRINT '#' + LTRIM('    Hello    ') + '#';

The result is:

#Hello    #
RSQL, a simple alternative to Microsoft SQL Server