What is the best way to remove all spaces from a string in SQL Server 2008?
LTRIM(RTRIM(\' a b \')) would remove all spaces at the right and left of th
100% working
UPDATE table_name SET "column_name"=replace("column_name", ' ', ''); //Remove white space
UPDATE table_name SET "column_name"=replace("column_name", '\n', ''); //Remove newline
UPDATE table_name SET "column_name"=replace("column_name", '\t', ''); //Remove all tab
You can use "column_name" or column_name
Thanks
Subroto