Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I need help removing a comma(,) in all data inputed in the data table.

Can I do it all at once?

I can't even think of a code that'll work, and I also can't risk experimenting with valuable data.

Please help. Thank you.
Posted

Look at the REPLACE [^]function

SQL
DECLARE @input NVARCHAR(20) = 'So, let us do this'

PRINT REPLACE(@input, ',', ' ')
 
Share this answer
 
Yes We can.
we just have to use Query to update the table..
like this..

SQL
update table_name set column_name=REPLACE(column_name,',','')


And See this..
Replace in SQl[^]
 
Share this answer
 
Use Static Method Replace() To replace The character value with null value.
 
Share this answer
 
v4
Comments
CHill60 17-Nov-14 6:45am    
@King_Fisher ...why the pointless (and incorrect) edit?
King Fisher 17-Nov-14 8:33am    
i just did something and i forgot what i did :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900