SQL替換字段中部分字符

update 表名 set 字段= replace(字段,'原字符','新字符'); 示例:web tb_item表中image字段中一數據爲:jd/4ef8861cf6854de9889f3db9b24dc371.jpgsql update tb_item set image = replace(image,'jd','taobao');svg 替換後:spa taobao/4ef8861cf6
相關文章
相關標籤/搜索