bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL LTRIM() Function

Example

SELECT LTRIM("     SQL Tutorial") AS LeftTrimmedString;

Definition and Usage

The LTRIM() function removes leading spaces from a string.

Syntax

LTRIM(
string
)

Parameter Values

ParameterDescription
stringRequired. The string to remove leading spaces from

Technical Details

Works in:From MySQL 4.0

Previous

MySQL LPAD() Function

Next

MySQL MID() Function