Example
Remove leading and trailing spaces from a string:
SELECT TRIM(' SQL Tutorial ') AS TrimmedString;
Definition and Usage
The TRIM() function removes leading and trailing spaces from a string. Continue reading MySQL TRIM Function
Remove leading and trailing spaces from a string:
SELECT TRIM(' SQL Tutorial ') AS TrimmedString;
The TRIM() function removes leading and trailing spaces from a string. Continue reading MySQL TRIM Function
Remove trailing spaces from a string:
SELECT RTRIM("SQL Tutorial ") AS RightTrimmedString;
The RTRIM() function removes trailing spaces from a string. Continue reading MySQL RTRIM Function