How to remove characters or string from a mysql table

This post was written by admin on January 24, 2010
Posted Under: MySQL, mysql tips

update tablename set column_name = replace(column_name, ‘find string to replace’, ‘replace with this string’);

Forr example, if you have asterisks in your data you want to delete:

update cities set city = replace(city, ‘*’, ”);

Add a Comment

required, use real name
required, will not be published
optional, your blog address