I am trying to have in MySQL the same effect as of Oracle's Rtrim
.
oracle> RTRIM('Tech6372', '0123456789')
Result: 'Tech'
As you can see Oracle regards the second parameter as a list of characters to be removed, not as a substring to be removed.
This is different from the following in MySQL:
mysql> SELECT TRIM(TRAILING 'xyz' FROM 'barxxyz');
Result: 'barx'
Is there a neat way to get MySQL to do the same thing as Oracle does here?