I've tried select REPLACE(' this is a user name', ' ', '')
and it gives me 'thisisausername' which is supposed to be.
My problem is, when I try to use REPLACE
on selecting a table column, it doesn't work!
My query:
SELECT REPLACE(UserName, ' ', '') as UserName FROM MY_TABLE
it still gives me usernames with spaces! Am I doing something stupid?