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

mod rewrite - Doing external redirect. .htaccess NS flag not working. How to achieve similar results? -

mysql - How to insert just year and month into date field? -