Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have string which contains abc,pqr. Now I want to replace the , with ','. Like abc','pqr. Please give some solution
Posted

SQL
SELECT REPLACE('testing,comma',',',''',''');
 
Share this answer
 
use below code

select replace(sur_remarks,',',Char(39)+','+char(39)) from ttuser

where sur_remarks is column name and ttuser is table name.
 
Share this answer
 

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