Loading lesson path
Concept visual
Start at both ends
Remove leading spaces from a string:
SELECT LTRIM(' SQL Tutorial') AS LeftTrimmedString;The LTRIM() function removes leading spaces from a string.
Also look at the RTRIM() function.
string )
Required. The string to remove leading spaces from
SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse
❮ SQL Server Functions