sql - MySQL replace all whitespaces with - -


how remove whitespaces row? see here alot of same question answers ar use replace option. replace work strip 1 spaces, not all.

ex: b c become a-b-c

thanks.

this can achieved following mysql function:

select replace( table.field, ' ', '-' ) table; 

this should replace whitespace -


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -