Skip to content

LTRIM

  • string: This parameter refers to the source string from which the leading spaces need to be removed by the LTRIM() function in MySQL.
SELECT LTRIM(' SQL Documentation') AS TrimmedString;
| TrimmedString |
| ------------------ |
| SQL Documentation |

The LTRIM function removes the leading spaces from the string ’ SQL Documentation’. The remaining string ‘SQL Documentation’ is then returned.