Reputation: 11292
My table contains some rows like below
I want to replace space (special char) instead of - (hyphens) in all records
Upvotes: 2
Views: 4909
Reputation: 43974
I'm not 100% sure what you want but to remove the hyphen you can do this:
Update dbo.MyTable
Set myCol = Replace(myCol, '-', space(0))
Or as a select
statement
Select Replace(myCol, '-', space(0))
From dbo.MyTable
Upvotes: 0