在mysql中更新replace命令

Hul*_*ulk 0 mysql replace

所有,

在名为(path)的字段中,名为recn的表中包含以下数据/home/user1/Computer-Science-10_1-10_7-17//html/Compu.html

我该如何更换

/home/user1/Computer-Science-10_1-10_7-17//html/Compu.html与/home/user1/path/files/Computer-Science-10_1-10_7-17//html/Compu.html在mysql中

还有很多像/ home/user1这样的行我必须用/ home/user1/path/files替换

谢谢.....

Max*_*keh 5

这是你想要的吗?

UPDATE mytable SET mycolumn 
  = REPLACE(mycolumn, '/home/user1','/home/user1/path/files');
Run Code Online (Sandbox Code Playgroud)