How to delete rows containing specific text string in a Mysql database

This post was written by admin on January 21, 2010
Posted Under: Uncategorized

“delete from tablename where columnname like ‘%text to match%’; 

Make sure you know the text is contained in only the rows you want to delete otherwise MySQL may delete other database rows you didn’t want deleted

Add a Comment

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