原文链接

REPLACE函数功能

REPLACE(columnName, search_str, replace_str)
查找columnName字段中所有search_str,并替换为replace_str

举例使用

源数据表

执行下面sql语句

UPDATE `tableName` SET `text`=REPLACE(`text`, \'<!--markdown-->\', \'newValue\');

查找text字段中所有<!--markdown-->,并替换为newValue

结果

相关文章:

  • 2022-12-23
  • 2021-07-01
  • 2021-11-29
  • 2021-11-15
  • 2021-11-13
  • 2021-11-21
  • 2021-12-01
  • 2021-05-10
猜你喜欢
  • 2022-02-08
  • 2021-09-15
  • 2022-01-09
  • 2021-09-19
相关资源
相似解决方案