LTRIM() function removes leading whitespace from a specified string in the selected column.
Syntax
ltrim(expr)
Arguments
Argument
Description
expr
Any string expression.
Returns
Data type
Value
string
Input string with leading whitespace removed.
Examples
Trim strings in a column
createtablesegments(_idid,segmentstring);insertintosegments(_id,segment)values(1,' green ')select_id,ltrim(segment)asTrimmedStrfromsegments;+-----+------------+|_id|TrimmedStr|+-----+------------+|1|green|+-----+------------+