MySQL has the LTRIM()
function that enables you to remove leading whitespace from a string (space at the start of the string).
MySQL also has the TRIM()
function that enables you to remove leading space, trailing space (at the end), space from both sides, or to remove other specified characters from either side (or both sides) of the string.
This article demonstrates how to remove leading space using each of these functions.