update 表名 set 字段=replace(字段,‘替换的部分’,‘替换后的字符串’);

update 表名 set A=replace( A, '海淀', '朝阳') where A like '海淀';  (将A字段中的“海淀”替换成“朝阳”);

update yb_user_img set image=replace( image, 'http://192.168.0.126', 'http://yuebei.web66.cn');将yb_user_img表中image字段所有的“http://192.168.0.126”替换成“http://yuebei.web66.cn”;

相关文章:

  • 2022-01-08
  • 2021-11-29
  • 2021-07-05
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-12
  • 2022-02-02
  • 2021-10-16
  • 2022-12-23
  • 2021-09-03
  • 2022-02-26
  • 2022-12-23
相关资源
相似解决方案