Earn income with your data and sql skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest self-service freelancing marketplace for people like you.

SQL LTRIM Function

LTRIM removes leading spaces from an input string.

To remove trailing spaces use the RTRIM function.

To remove both leading and trailing spaces use the TRIM function.

Example

#

This example removes the leading spaces from the input string.

SELECT LTRIM('     SQL') AS 'Left Trimmed'
Result:  1 record
Left Trimmed
SQL

Syntax

Syntax of the LTRIM function.

LTRIM(string)

string -- a character expression, variable, or column name.


You may also like



Earn income with your data and sql skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest self-service freelancing marketplace for people like you.

Guides


vsn 3.1