SQLTeam.com | Weblogs | Forums

Replace Function

sql2012

#1

Hi,

I have query like that
select REPLACE('ab cd.-', ' -.' ,'_');

I want o/p:--ab_cd

How can i achieve it in single replace function