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
Post a Comment