
string Space Remove in SQL
Remove space from the string and replace with one space.
DECLARE @String NVARCHAR(50);
SET @String = "Chirag is here";
SELECT REPLACE(REPLACE(REPLACE(@String, " ", "<>"), "><", ""), "<>", " ");
Remove space from the string and replace with one space.
DECLARE @String NVARCHAR(50);
SET @String = "Chirag is here";
SELECT REPLACE(REPLACE(REPLACE(@String, " ", "<>"), "><", ""), "<>", " ");