RTRIM
The function
RTRIM
removes trailing spaces (removes spaces from the end)
SELECT 
    LENGTH(' text ') length,
    LENGTH(RTRIM(' text ')) length_with_right_trim
by Valeri Tandilashvili
4 years ago
MySQL
String functions
1
Pro tip: use ```triple backticks around text``` to write in code fences