replace - Replacement character in SQL database -


i have table in database containing 50000 records, in column slno around 20000 rows contain / , want replace character -.

example :

34158/256  

output

34158-256 

please me.

thanks in advance

if understand correctly, can replace() function. update:

update t     set slno = replace(slno, '/', '-')     slno '%/%'; 

(the where optional here, makes logic explicit.)

you can in select statement as:

select replace(slno, '/', '-') table t; 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -