用update和replace在mysql中替換某一個字段的部分內容

簡單的一句語句:

update table_name set column_name = (REPLACE(column_name, 'xxx', 'yyy')) where ...

其他方式,參考:http://hi.baidu.com/phpzhang/blog/item/7c96ec3474e89e45241f141c.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章