SQL替换字段中部分字符

update 表名 set 字段= replace(字段,'原字符','新字符'); 示例:web tb_item表中image字段中一数据为:jd/4ef8861cf6854de9889f3db9b24dc371.jpgsql update tb_item set image = replace(image,'jd','taobao');svg 替换后:spa taobao/4ef8861cf6
相关文章
相关标签/搜索