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
相關文章
相關標籤/搜索