RTRIM to remove space suffix to a string


MySQL Rtrim
SELECT RTRIM('plus2net.com    ')// Output plus2net.com

RTRIM with UPDATE

To remove blank space after the name in our student table
UPDATE student SET name=RTRIM(name)
Read more on UPDATE Query
We can add space to a column and then display after removing
SELECT concat(name,'    '), RTRIM(concat(name, '   '))  from student
Read more on CONCAT


SQL String References LTRIM() : Removing space from LEFT TRIM : Removing space from both sides of the string

Subhendu Mohapatra — author at plus2net
Subhendu Mohapatra

Author

🎥 Join me live on YouTube

Passionate about coding and teaching, I publish practical tutorials on PHP, Python, JavaScript, SQL, and web development. My goal is to make learning simple, engaging, and project‑oriented with real examples and source code.



Subscribe to our YouTube Channel here



plus2net.com




SQL Video Tutorials










We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
©2000-2025   plus2net.com   All rights reserved worldwide Privacy Policy Disclaimer