I have a string that is like this word1 - null - word3
, is it possible to write an sql query to remove the word null
from the string of text?
Thanks
I have a string that is like this word1 - null - word3
, is it possible to write an sql query to remove the word null
from the string of text?
Thanks
Use REPLACE
.
Query
declare @str as varchar(50);
set @str = 'word1 - null - word3';
select replace(@str,'null','');