MySQL LTRIM() Function
Example
Remove leading spaces from a string:
SELECT LTRIM(" SQL Tutorial") AS LeftTrimmedString;
Try it Yourself »
Definition and Usage
The LTRIM() function removes leading spaces from a string.
Syntax
LTRIM(string)Parameter Values
| Parameter | Description |
|---|---|
| string | Required. The string to remove leading spaces from |
Technical Details
| Works in: | MySQL 5.7, MySQL 5.6, MySQL 5.5, MySQL 5.1, MySQL 5.0, MySQL 4.1, MySQL 4.0, MySQL 3.23 |
|---|

