I have the following string: \'BOB*\', how do I trim the * so it shows up as \'BOB\'
I tried the RTRIM(\'BOB*\',\'*\') but does not work as says needs only 1 paramet
Another pretty good way to implement Oracle's TRIM char FROM string
in MS SQL Server is the following:
~
*
you want to trim with a spaceLTrim
+ RTrim
the obtained string*
For example:
REPLACE(REPLACE(LTrim(RTrim(REPLACE(REPLACE(string,' ','~'),'*',' '))),' ','*'),'~',' ')