I need a MySQL Statement to delete the following string from the text in the field called post_content
E.g. String: [css3_grid id='gcse']
, How can I do it?
I need a MySQL Statement to delete the following string from the text in the field called post_content
E.g. String: [css3_grid id='gcse']
, How can I do it?
Use the REPLACE() function.
UPDATE table SET post_content = REPLACE(post_content, 'String: [css3_grid id=''gcse'']', '');
You're going to want to do something like this:
UPDATE table SET post_content = REPLACE( '[css3_grid id=\'gcse\']' , '' , post_content )