mysql的正则使用

将comment表中的author_url包含www.sohu.com的记录,其中的sohu替换为sina,一个语句搞定~  update comment set author_url=REPLACE(author_url,'sohu','sina') where author_url REGEXP 'www.sohu.com';  带IF判断的复杂替换  update comment set u
相关文章
相关标签/搜索