Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
macsterling
Yak Posting Veteran
56 Posts |
Posted - 2009-01-23 : 19:52:43
|
| How do I find a comma and get rid of it when it is somewhere in a column (it follows a name) |
|
|
gravyface
Starting Member
16 Posts |
Posted - 2009-01-23 : 19:59:43
|
quote: Originally posted by macsterling How do I find a comma and get rid of it when it is somewhere in a column (it follows a name)
The REPLACE function:http://msdn.microsoft.com/en-us/library/ms186862.aspx |
 |
|
|
Jai Krishna
Constraint Violating Yak Guru
333 Posts |
Posted - 2009-01-23 : 22:40:09
|
| SELECT REPLACE(colname,',','') Jai Krishna |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-01-24 : 10:51:00
|
| please keep in mind that replace replaces all the occurances of value with replacement value |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-01-24 : 10:52:46
|
| if its just for extraction of data based on ',' position use CHARINDEX() |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|
|