I need to remove the any double space (two spaces) that comes anywhere in the text in one my database tables..
I tried:
update items set description= replace(description, ' ', ' ')
but this removes if it is only the spaces.. but the “description” cells has many words like: “any text here more”, so I need to remove the two spaces before the word “more” at the example before, and leave everything else as is.. just replace the double space with one space anywhere.
you can use trim command, please refer this
http://consultingblogs.emc.com/jamespipe/archive/2007/08/14/SQL_3A00_-A-49-character-long-_2700_empty_2700_-field_3F00_.aspx
or try this