hanuman
answered May 31 '22 00:00
The RTRIM function is used to right side trim a given string in MySQL.
The RTRIM function removes white space from the right side of the given string in MySQL.
for example " an example " string has white space before and after and if you want to remove it from the right side in MySQL The RTRIM function will do the job.
select RTRIM(' an example ')
above query returns " an example"(without whitespace at end of the string)