我需要一个MySQL语句从名为post_content的字段中删除以下字符串
字符串:[css3_grid id='gcse'],我怎么做?
发布于 2015-02-04 14:15:39
使用替换()函数。
UPDATE table SET post_content = REPLACE(post_content, 'String: [css3_grid id=''gcse'']', '');发布于 2015-02-04 14:15:10
你会想做这样的事情:
UPDATE table SET post_content = REPLACE( '[css3_grid id=\'gcse\']' , '' , post_content )https://stackoverflow.com/questions/28323457
复制相似问题